import os from settings import SITE_ROOT, INSTALLED_APPS, MIDDLEWARE_CLASSES DEBUG = True TEMPLATE_DEBUG = DEBUG DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': os.path.join(SITE_ROOT, 'sublab.db'), } } 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') DEBUG_TOOLBAR_CONFIG = { 'INTERCEPT_REDIRECTS': False, }