import os from settings import INSTALLED_APPS, LOGGING, MIDDLEWARE_CLASSES, SITE_ROOT AUTH_LDAP_SERVER_URI = 'ldap://taifun.local.sublab.org' 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, } LOGGING['loggers'].update({ '': { 'handlers': ['debuglog'], 'level': 'DEBUG' } })