mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-09 00:05:21 +01:00
Allow overriding default media directory
This commit is contained in:
parent
a1cd05f9e2
commit
6436e02923
2 changed files with 6 additions and 1 deletions
|
|
@ -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/"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue