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
41 ########## STATIC CONFIG
42 # See: https://docs.djangoproject.com/en/dev/ref/settings/#static-url
43 STATIC_URL = '/static/'
44 # See: https://docs.djangoproject.com/en/dev/ref/settings/#static-root
45 STATIC_ROOT = normpath(join(DJANGO_ROOT, 'static'))
47 ########## END STATIC CONFIG
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
55 ########## TOOLBAR CONFIGURATION
56 # See: https://github.com/django-debug-toolbar/django-debug-toolbar#installation
63 # See: https://github.com/django-debug-toolbar/django-debug-toolbar#installation
64 INTERNAL_IPS = ('127.0.0.1',)
66 # See: https://github.com/django-debug-toolbar/django-debug-toolbar#installation
67 MIDDLEWARE_CLASSES += (
68 'debug_toolbar.middleware.DebugToolbarMiddleware',
71 DEBUG_TOOLBAR_CONFIG = {
72 'INTERCEPT_REDIRECTS': False # Don't interrput our redirects!
74 ########## END TOOLBAR CONFIGURATION
76 ########## TESTING CONFIGURATION
77 # Use django-nose to test our app, see https://github.com/jbalogh/django-nose
78 TEST_RUNNER = 'django_nose.NoseTestSuiteRunner'
79 ########## END TESTING CONFIGURATION