Move collected staticfiles to other dir
This commit is contained in:
parent
dd7b24018b
commit
a1764d7143
3 changed files with 3 additions and 3 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -272,4 +272,4 @@ dmypy.json
|
|||
# End of https://www.toptal.com/developers/gitignore/api/osx,pycharm,python
|
||||
|
||||
.idea
|
||||
static/
|
||||
staticfiles/
|
||||
|
|
|
@ -130,7 +130,7 @@ USE_TZ = True
|
|||
# https://docs.djangoproject.com/en/3.1/howto/static-files/
|
||||
|
||||
STATIC_URL = "/static/"
|
||||
STATIC_ROOT = BASE_DIR / "static"
|
||||
STATIC_ROOT = BASE_DIR / "staticfiles"
|
||||
if TESTING:
|
||||
# ManifestStaticFilesStorage requires collectstatic to be run
|
||||
# and collectstatic is not run for tests
|
||||
|
|
|
@ -10,6 +10,6 @@ services:
|
|||
volumes:
|
||||
- ./db:/db
|
||||
# - /srv/blog/db:/db
|
||||
- ./static:/app/static
|
||||
- ./static:/app/staticfiles
|
||||
# - /srv/blog/static:/app/static
|
||||
restart: on-failure
|
||||
|
|
Reference in a new issue