From 98eae9563266cb762d7b7684c895f18597d906ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Kervella?= Date: Sun, 15 Apr 2018 17:26:28 +0000 Subject: [PATCH] Avoid duplicate settings and keeps comments --- re2o/settings.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/re2o/settings.py b/re2o/settings.py index b68738dd..bac8982b 100644 --- a/re2o/settings.py +++ b/re2o/settings.py @@ -155,16 +155,14 @@ BOOTSTRAP_BASE_URL = '/static/bootstrap/' STATICFILES_DIRS = ( os.path.join(BASE_DIR, 'static').replace('\\', '/'), ) - -MEDIA_ROOT = '/var/www/re2o/media' - -MEDIA_URL = '/media/' - +# Directory where the static files served by the server are stored STATIC_ROOT = os.path.join(BASE_DIR, 'static_files') # The URL to access the static files STATIC_URL = '/static/' -# Directory where the media files serverd by the server are stored +# Directory where the media files served by the server are stored MEDIA_ROOT = os.path.join(BASE_DIR, 'media').replace('\\', '/') +# The URL to access the static files +MEDIA_URL = '/media/' # Models to use for graphs GRAPH_MODELS = {