From 9d5125103176d66f5cc1d82268e02162b9b85595 Mon Sep 17 00:00:00 2001 From: Michael Hall Date: Sat, 17 Mar 2018 16:31:15 -0400 Subject: [PATCH] Move MEDIA_URL and MEDIA_ROOT from the bottom of settings.py --- get_together/settings.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/get_together/settings.py b/get_together/settings.py index 8d6f090..3fcd5bb 100644 --- a/get_together/settings.py +++ b/get_together/settings.py @@ -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/' +