Merge branch 'master' of https://github.com/FinalsClub/karmaworld into pylibmc
[oweals/karmaworld.git] / karmaworld / settings / dev.py
1 #!/usr/bin/env python
2 # -*- coding:utf8 -*-
3 # Copyright (C) 2012  FinalsClub Foundation
4 """Development settings and globals."""
5
6
7 from os.path import join, normpath
8
9 from common import *
10
11
12 ########## DEBUG CONFIGURATION
13 # See: https://docs.djangoproject.com/en/dev/ref/settings/#debug
14 DEBUG = True
15
16 # See: https://docs.djangoproject.com/en/dev/ref/settings/#template-debug
17 TEMPLATE_DEBUG = DEBUG
18 ########## END DEBUG CONFIGURATION
19
20
21 ########## EMAIL CONFIGURATION
22 # See: https://docs.djangoproject.com/en/dev/ref/settings/#email-backend
23 EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
24 ########## END EMAIL CONFIGURATION
25
26
27 ########## DATABASE CONFIGURATION
28 # See: https://docs.djangoproject.com/en/dev/ref/settings/#databases
29 DATABASES = {
30     'default': {
31         'ENGINE': 'django.db.backends.sqlite3',
32         'NAME': normpath(join(DJANGO_ROOT, 'karmaworld.db')),
33         'USER': '',
34         'PASSWORD': '',
35         'HOST': '',
36         'PORT': '',
37     }
38 }
39 ########## END DATABASE CONFIGURATION
40
41
42 ########## CACHE CONFIGURATION
43 # See: https://docs.djangoproject.com/en/dev/ref/settings/#caches
44 CACHES = {
45     'default': {
46         'BACKEND': 'django.core.cache.backends.memcached.PyLibMCCache',
47     }
48 }
49 ########## END CACHE CONFIGURATION
50
51
52 ########## CELERY CONFIGURATION
53 # See: http://docs.celeryq.org/en/latest/configuration.html#celery-always-eager
54 CELERY_ALWAYS_EAGER = True
55 ########## END CELERY CONFIGURATION
56
57
58 ########## TOOLBAR CONFIGURATION
59 # See: https://github.com/django-debug-toolbar/django-debug-toolbar#installation
60 INSTALLED_APPS += (
61     'debug_toolbar',
62 )
63
64 # See: https://github.com/django-debug-toolbar/django-debug-toolbar#installation
65 INTERNAL_IPS = ('127.0.0.1',)
66
67 # See: https://github.com/django-debug-toolbar/django-debug-toolbar#installation
68 MIDDLEWARE_CLASSES += (
69     'debug_toolbar.middleware.DebugToolbarMiddleware',
70 )
71
72 DEBUG_TOOLBAR_CONFIG = { 
73     'INTERCEPT_REDIRECTS': False # Don't interrput our redirects!
74 }
75 ########## END TOOLBAR CONFIGURATION