* Put nl as the first language in the settins.
[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 LANGUAGE_CODE = 'nl'
27 LANGUAGES = (
28     ('nl', 'Nederlands'),
29     ('en', 'English'),
30 )
31
32 SITE_ID = 1
33
34 # If you set this to False, Django will make some optimizations so as not
35 # to load the internationalization machinery.
36 USE_I18N = True
37
38 # Absolute path to the directory that holds media.
39 # Example: "/home/media/media.lawrence.com/"
40 MEDIA_ROOT = ''
41
42 # URL that handles the media served from MEDIA_ROOT.
43 # Example: "http://media.lawrence.com"
44 MEDIA_URL = ''
45
46 # URL prefix for static files. Will be made available by
47 # ee.tools.context_processors.static
48 STATIC_URL_PREFIX = '/static/'
49
50 # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
51 # trailing slash.
52 # Examples: "http://foo.com/media/", "/media/".
53 ADMIN_MEDIA_PREFIX = '/media/'
54
55 # Make this unique, and don't share it with anybody.
56 SECRET_KEY = '6-zo+-1@-342%k4%82aw#kxr4f%5w00xhwby5$&fa@+!dh@(2='
57
58 # List of callables that know how to import templates from various sources.
59 TEMPLATE_LOADERS = (
60     'django.template.loaders.filesystem.load_template_source',
61     'django.template.loaders.app_directories.load_template_source',
62 #     'django.template.loaders.eggs.load_template_source',
63 )
64
65 MIDDLEWARE_CLASSES = (
66     'django.middleware.common.CommonMiddleware',
67     'django.contrib.sessions.middleware.SessionMiddleware',
68     'django.contrib.auth.middleware.AuthenticationMiddleware',
69     'django.middleware.doc.XViewMiddleware',
70     # Let's keep this disabled (until we can offer language selection to
71     # users).
72     #'django.middleware.locale.LocaleMiddleware',
73 )
74
75 ROOT_URLCONF = 'ee.urls'
76
77 TEMPLATE_DIRS = (
78     # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
79     # Always use forward slashes, even on Windows.
80     # Don't forget to use absolute paths, not relative paths.
81     '/home/matthijs/docs/src/django/ee/templates',
82 )
83
84 INSTALLED_APPS = (
85     'django.contrib.auth',
86     'django.contrib.contenttypes',
87     'django.contrib.sessions',
88     'django.contrib.sites',
89     'django.contrib.admin',
90     'ee.events',
91     'ee.influences',
92     'ee.base',
93     'ee.tools',
94 )
95
96 TEMPLATE_CONTEXT_PROCESSORS = (
97     "django.core.context_processors.auth",
98     "django.core.context_processors.debug",
99     "django.core.context_processors.i18n",
100     # Add STATIC_URL_PREFIX to the context
101     "ee.tools.context_processors.static",
102 )
103
104 LOGIN_URL = "/accounts/login/"
105 LOGIN_REDIRECT_URL = "/influences/"
106
107 # Allow authentication against the phpb user accounts
108
109 AUTHENTICATION_BACKENDS = (
110     'ee.auth.PhpBBBackend',
111     'django.contrib.auth.backends.ModelBackend',
112 )