summaryrefslogtreecommitdiff
path: root/conf/dev_settings.py
blob: b826822d6d05052d21666d040f69b0991b1b0131 (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
32
33
34
35
36
37
38
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'
    }
})