import os from settings import LOGGING, SITE_ROOT AUTH_LDAP_SERVER_URI = 'ldap://taifun.local.sublab.org' DEBUG = True TEMPLATE_DEBUG = DEBUG THUMBNAIL_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/' LOGGING['loggers'].update({ '': { 'handlers': ['debuglog'], 'level': 'DEBUG' } }) SESSION_ENGINE = 'django.contrib.sessions.backends.db'