mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-07-28 18:24:38 -05:00
Allow overriding default media directory
This commit is contained in:
@@ -151,7 +151,10 @@ USE_TZ = True
|
||||
# https://docs.djangoproject.com/en/1.9/howto/static-files/
|
||||
|
||||
STATIC_ROOT = os.path.join(BASE_DIR, "..", "static")
|
||||
MEDIA_ROOT = os.path.join(BASE_DIR, "..", "media")
|
||||
MEDIA_ROOT = os.getenv(
|
||||
"PAPERLESS_MEDIADIR",
|
||||
os.path.join(BASE_DIR, "..", "media")
|
||||
)
|
||||
|
||||
STATIC_URL = '/static/'
|
||||
MEDIA_URL = "/media/"
|
||||
|
Reference in New Issue
Block a user