Move MEDIA_URL and MEDIA_ROOT from the bottom of settings.py

This commit is contained in:
Michael Hall 2018-03-17 16:31:15 -04:00
parent 3618ba6def
commit 9d51251031

View file

@ -149,6 +149,8 @@ USE_TZ = True
# https://docs.djangoproject.com/en/2.0/howto/static-files/
STATIC_URL = '/static/'
MEDIA_ROOT = './media/'
MEDIA_URL = '/media/'
GOOGLE_ANALYTICS_ID=None
GOOGLE_MAPS_API_KEY=None
@ -182,5 +184,4 @@ try:
except:
print("WARNING: You should create a local_settings.py to store local and secret data.")
MEDIA_ROOT = './media/'
MEDIA_URL = '/media/'