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