This seems to make it work. NFI

Works in prod mode, dies in dev with a warning/error

Doco seems to suggest that mixing these directories together is an
error as it means user uploads mingle with site files.
This commit is contained in:
Sachi King 2017-03-05 22:40:00 +11:00
parent befa544bec
commit 187d900d81

View file

@ -36,9 +36,13 @@ USE_TZ = True
MEDIA_ROOT = os.path.join(PACKAGE_ROOT, "site_media", "media") MEDIA_ROOT = os.path.join(PACKAGE_ROOT, "site_media", "media")
MEDIA_URL = "/site_media/media/" MEDIA_URL = "/site_media/media/"
STATIC_ROOT = os.path.join(PROJECT_ROOT, "static", "dist") STATIC_ROOT = os.path.join(PROJECT_ROOT, "static", "distx")
STATIC_URL = "/static/dist/" STATIC_URL = "/static/dist/"
STATICFILES_DIRS = [
os.path.join(PROJECT_ROOT, "static", "dist"),
]
STATICFILES_FINDERS = [ STATICFILES_FINDERS = [
"django.contrib.staticfiles.finders.FileSystemFinder", "django.contrib.staticfiles.finders.FileSystemFinder",
"django.contrib.staticfiles.finders.AppDirectoriesFinder", "django.contrib.staticfiles.finders.AppDirectoriesFinder",