summaryrefslogtreecommitdiff
path: root/conf/dev_settings.py
blob: d2382a2e7e2598e0be1c15bbc5ed5dae9c729530 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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'