* Redirect to /influences after logging in.
[matthijs/projects/xerxes.git] / settings.py
1 # Django settings for ee project.
2
3 from dbsettings import *
4
5 DEBUG = True
6 TEMPLATE_DEBUG = DEBUG
7
8 ADMINS = (
9     # ('Your Name', 'your_email@domain.com'),
10 )
11
12 MANAGERS = ADMINS
13
14
15 # Local time zone for this installation. Choices can be found here:
16 # http://www.postgresql.org/docs/8.1/static/datetime-keywords.html#DATETIME-TIMEZONE-SET-TABLE
17 # although not all variations may be possible on all operating systems.
18 # If running in a Windows environment this must be set to the same as your
19 # system time zone.
20 TIME_ZONE = 'Europe/Amsterdam'
21
22 # Language code for this installation. All choices can be found here:
23 # http://www.w3.org/TR/REC-html40/struct/dirlang.html#langcodes
24 # http://blogs.law.harvard.edu/tech/stories/storyReader$15
25 LANGUAGE_CODE = 'en-us'
26
27 SITE_ID = 1
28
29 # If you set this to False, Django will make some optimizations so as not
30 # to load the internationalization machinery.
31 USE_I18N = True
32
33 # Absolute path to the directory that holds media.
34 # Example: "/home/media/media.lawrence.com/"
35 MEDIA_ROOT = ''
36
37 # URL that handles the media served from MEDIA_ROOT.
38 # Example: "http://media.lawrence.com"
39 MEDIA_URL = ''
40
41 # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
42 # trailing slash.
43 # Examples: "http://foo.com/media/", "/media/".
44 ADMIN_MEDIA_PREFIX = '/media/'
45
46 # Make this unique, and don't share it with anybody.
47 SECRET_KEY = '6-zo+-1@-342%k4%82aw#kxr4f%5w00xhwby5$&fa@+!dh@(2='
48
49 # List of callables that know how to import templates from various sources.
50 TEMPLATE_LOADERS = (
51     'django.template.loaders.filesystem.load_template_source',
52     'django.template.loaders.app_directories.load_template_source',
53 #     'django.template.loaders.eggs.load_template_source',
54 )
55
56 MIDDLEWARE_CLASSES = (
57     'django.middleware.common.CommonMiddleware',
58     'django.contrib.sessions.middleware.SessionMiddleware',
59     'django.contrib.auth.middleware.AuthenticationMiddleware',
60     'django.middleware.doc.XViewMiddleware',
61 )
62
63 ROOT_URLCONF = 'ee.urls'
64
65 TEMPLATE_DIRS = (
66     # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
67     # Always use forward slashes, even on Windows.
68     # Don't forget to use absolute paths, not relative paths.
69         '/home/matthijs/docs/src/django/ee/templates',
70 )
71
72 INSTALLED_APPS = (
73     'django.contrib.auth',
74     'django.contrib.contenttypes',
75     'django.contrib.sessions',
76     'django.contrib.sites',
77     'django.contrib.admin',
78         'ee.events',
79         'ee.influences',
80         'ee.base',
81 )
82
83 TEMPLATE_CONTEXT_PROCESSORS = (
84         "django.core.context_processors.auth",
85         "django.core.context_processors.debug",
86         "django.core.context_processors.i18n",
87 )
88
89 LOGIN_URL = "/accounts/login/"
90 LOGIN_REDIRECT_URL = "/influences/"
91
92 # Allow authentication against the phpb user accounts
93
94 AUTHENTICATION_BACKENDS = (
95         'ee.auth.PhpBBBackend',
96         'django.contrib.auth.backends.ModelBackend',
97 )