From 49dfec0c70ad49922f079d831bdb7bf806f31859 Mon Sep 17 00:00:00 2001 From: Nikolai Kristiansen Date: Wed, 30 Sep 2015 20:50:19 +0200 Subject: [PATCH] Adds settings for uploded files --- bbssite/settings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bbssite/settings.py b/bbssite/settings.py index a8b4f55..72d89cb 100755 --- a/bbssite/settings.py +++ b/bbssite/settings.py @@ -48,12 +48,12 @@ USE_L10N = True # Absolute filesystem path to the directory that will hold user-uploaded files. # Example: "/home/media/media.lawrence.com/media/" -MEDIA_ROOT = '' +MEDIA_ROOT = os.path.join(BASE_DIR, 'media') # URL that handles the media served from MEDIA_ROOT. Make sure to use a # trailing slash. # Examples: "http://media.lawrence.com/media/", "http://example.com/media/" -MEDIA_URL = '' +MEDIA_URL = '/media/' # Absolute path to the directory static files should be collected to. # Don't put anything in this directory yourself; store your static files