From 8da4e4052de3bf9e9b98b6baef7ef6239f76694a Mon Sep 17 00:00:00 2001 From: "A. Svensson" Date: Wed, 18 Feb 2015 18:18:22 +0100 Subject: [PATCH] Added some more settings. --- src/src/settings.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/src/settings.py b/src/src/settings.py index af6f472..a0c6c40 100644 --- a/src/src/settings.py +++ b/src/src/settings.py @@ -65,6 +65,7 @@ DATABASES = { } } + # Internationalization # https://docs.djangoproject.com/en/1.7/topics/i18n/ @@ -83,3 +84,22 @@ USE_TZ = True # https://docs.djangoproject.com/en/1.7/howto/static-files/ STATIC_URL = '/static/' +STATICFILES_DIRS = ( + os.path.join(BASE_DIR, 'static'), +) + + +MEDIA_URL = '/media/' +MEDIA_ROOT = os.path.join(BASE_DIR, 'media') + + +TEMPLATE_DIRS = ( + os.path.join(BASE_DIR, 'templates'), +) + + +# Try to load custom settings (ie. production settings) +try: + from settings_local import * +except ImportError: + pass