Fixes #1219: Fix image attachment URLs when BASE_PATH is set

This commit is contained in:
Jeremy Stretch 2017-05-24 10:34:01 -04:00
parent 68b6c7d886
commit 9aad8a7774

View File

@ -181,8 +181,8 @@ STATICFILES_DIRS = (
)
# Media
MEDIA_URL = '/media/'
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
MEDIA_URL = '/{}media/'.format(BASE_PATH)
# Disable default limit of 1000 fields per request. Needed for bulk deletion of objects. (Added in Django 1.10.)
DATA_UPLOAD_MAX_NUMBER_FIELDS = None