diff options
Diffstat (limited to 'conf')
-rw-r--r-- | conf/dev_settings.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/conf/dev_settings.py b/conf/dev_settings.py index 1953653..d5cefb7 100644 --- a/conf/dev_settings.py +++ b/conf/dev_settings.py @@ -2,6 +2,7 @@ import os from settings import SITE_ROOT, INSTALLED_APPS, MIDDLEWARE_CLASSES + DEBUG = True TEMPLATE_DEBUG = DEBUG @@ -12,7 +13,14 @@ DATABASES = { } } +MEDIA_ROOT = os.path.join(SITE_ROOT, 'media') +if not os.path.exists(MEDIA_ROOT): + os.mkdir(MEDIA_ROOT) + +MEDIA_URL = '/media/' + INSTALLED_APPS += ('debug_toolbar',) + MIDDLEWARE_CLASSES += ('debug_toolbar.middleware.DebugToolbarMiddleware',) INTERNAL_IPS = ('127.0.0.1') |