basing the django project on rdegges' django-skel
[oweals/karmaworld.git] / karmaworld / settings / dev.py
1 """Development settings and globals."""
2
3
4 from os.path import join, normpath
5
6 from common import *
7
8
9 ########## DEBUG CONFIGURATION
10 # See: https://docs.djangoproject.com/en/dev/ref/settings/#debug
11 DEBUG = True
12
13 # See: https://docs.djangoproject.com/en/dev/ref/settings/#template-debug
14 TEMPLATE_DEBUG = DEBUG
15 ########## END DEBUG CONFIGURATION
16
17
18 ########## EMAIL CONFIGURATION
19 # See: https://docs.djangoproject.com/en/dev/ref/settings/#email-backend
20 EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
21 ########## END EMAIL CONFIGURATION
22
23
24 ########## DATABASE CONFIGURATION
25 # See: https://docs.djangoproject.com/en/dev/ref/settings/#databases
26 DATABASES = {
27     'default': {
28         'ENGINE': 'django.db.backends.sqlite3',
29         'NAME': normpath(join(DJANGO_ROOT, 'default.db')),
30         'USER': '',
31         'PASSWORD': '',
32         'HOST': '',
33         'PORT': '',
34     }
35 }
36 ########## END DATABASE CONFIGURATION
37
38
39 ########## CACHE CONFIGURATION
40 # See: https://docs.djangoproject.com/en/dev/ref/settings/#caches
41 CACHES = {
42     'default': {
43         'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
44     }
45 }
46 ########## END CACHE CONFIGURATION
47
48
49 ########## CELERY CONFIGURATION
50 # See: http://docs.celeryq.org/en/latest/configuration.html#celery-always-eager
51 CELERY_ALWAYS_EAGER = True
52 ########## END CELERY CONFIGURATION
53
54
55 ########## TOOLBAR CONFIGURATION
56 # See: https://github.com/django-debug-toolbar/django-debug-toolbar#installation
57 INSTALLED_APPS += (
58     'debug_toolbar',
59 )
60
61 # See: https://github.com/django-debug-toolbar/django-debug-toolbar#installation
62 INTERNAL_IPS = ('127.0.0.1',)
63
64 # See: https://github.com/django-debug-toolbar/django-debug-toolbar#installation
65 MIDDLEWARE_CLASSES += (
66     'debug_toolbar.middleware.DebugToolbarMiddleware',
67 )
68 ########## END TOOLBAR CONFIGURATION