comment to an unused partial
[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 ########## 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'))
46
47 ########## END STATIC CONFIG
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     'django_extensions',
60     'django_nose',
61 )
62
63 # See: https://github.com/django-debug-toolbar/django-debug-toolbar#installation
64 INTERNAL_IPS = ('127.0.0.1',)
65
66 # See: https://github.com/django-debug-toolbar/django-debug-toolbar#installation
67 MIDDLEWARE_CLASSES += (
68     'debug_toolbar.middleware.DebugToolbarMiddleware',
69 )
70
71 DEBUG_TOOLBAR_CONFIG = {
72     'INTERCEPT_REDIRECTS': False # Don't interrput our redirects!
73 }
74 ########## END TOOLBAR CONFIGURATION
75
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