Add config option to override STATIC_ROOT

This commit is contained in:
Dashie committed 2017-02-01 00:22:32 +01:00
1 parent 701ef2f919
commit 425f87618a
2 files changed
+6 -1

No files matched your search

+2 -1
View File
@@ -162,7 +162,8 @@ USE_TZ = True
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/1.9/howto/static-files/
STATIC_ROOT = os.path.join(BASE_DIR, "..", "static")
STATIC_ROOT = os.getenv(
"PAPERLESS_STATICDIR", os.path.join(BASE_DIR, "..", "static"))
MEDIA_ROOT = os.getenv(
"PAPERLESS_MEDIADIR", os.path.join(BASE_DIR, "..", "media"))