Move collected staticfiles to other dir

This commit is contained in:
Gabriel Augendre 2020-08-18 08:45:49 +02:00
parent dd7b24018b
commit a1764d7143
3 changed files with 3 additions and 3 deletions

2
.gitignore vendored
View file

@ -272,4 +272,4 @@ dmypy.json
# End of https://www.toptal.com/developers/gitignore/api/osx,pycharm,python
.idea
static/
staticfiles/

View file

@ -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

View file

@ -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