3 # Copyright (C) 2012 FinalsClub Foundation
4 """Development settings and globals."""
7 from os.path import join, normpath
12 ########## DEBUG CONFIGURATION
13 # See: https://docs.djangoproject.com/en/dev/ref/settings/#debug
16 # See: https://docs.djangoproject.com/en/dev/ref/settings/#template-debug
17 TEMPLATE_DEBUG = DEBUG
18 ########## END DEBUG CONFIGURATION
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
27 ########## DATABASE CONFIGURATION
28 # See: https://docs.djangoproject.com/en/dev/ref/settings/#databases
31 'ENGINE': 'django.db.backends.sqlite3',
32 'NAME': normpath(join(DJANGO_ROOT, 'karmaworld.db')),
39 ########## END DATABASE CONFIGURATION
42 ########## CACHE CONFIGURATION
43 # See: https://docs.djangoproject.com/en/dev/ref/settings/#caches
46 'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
49 ########## END CACHE CONFIGURATION
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
58 ########## TOOLBAR CONFIGURATION
59 # See: https://github.com/django-debug-toolbar/django-debug-toolbar#installation
64 # See: https://github.com/django-debug-toolbar/django-debug-toolbar#installation
65 INTERNAL_IPS = ('127.0.0.1',)
67 # See: https://github.com/django-debug-toolbar/django-debug-toolbar#installation
68 MIDDLEWARE_CLASSES += (
69 'debug_toolbar.middleware.DebugToolbarMiddleware',
72 DEBUG_TOOLBAR_CONFIG = {
73 'INTERCEPT_REDIRECTS': False # Don't interrput our redirects!
75 ########## END TOOLBAR CONFIGURATION