Added some more settings.

This commit is contained in:
A. Svensson 2015-02-18 18:18:22 +01:00
parent 64628049ca
commit 8da4e4052d

View File

@ -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