1 # Django settings for ee project.
3 from dbsettings import *
9 # ('Your Name', 'your_email@domain.com'),
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
20 TIME_ZONE = 'Europe/Amsterdam'
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'
34 # If you set this to False, Django will make some optimizations so as not
35 # to load the internationalization machinery.
38 # Absolute path to the directory that holds media.
39 # Example: "/home/media/media.lawrence.com/"
42 # URL that handles the media served from MEDIA_ROOT.
43 # Example: "http://media.lawrence.com"
46 # URL prefix for static files. Will be made available by
47 # ee.tools.context_processors.static
48 STATIC_URL_PREFIX = '/static/'
50 # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
52 # Examples: "http://foo.com/media/", "/media/".
53 ADMIN_MEDIA_PREFIX = '/media/'
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='
58 # List of callables that know how to import templates from various sources.
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',
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',
72 ROOT_URLCONF = 'ee.urls'
75 # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
76 # Always use forward slashes, even on Windows.
77 # Don't forget to use absolute paths, not relative paths.
78 '/home/matthijs/docs/src/django/ee/templates',
82 'django.contrib.auth',
83 'django.contrib.contenttypes',
84 'django.contrib.sessions',
85 'django.contrib.sites',
86 'django.contrib.admin',
92 TEMPLATE_CONTEXT_PROCESSORS = (
93 "django.core.context_processors.auth",
94 "django.core.context_processors.debug",
95 "django.core.context_processors.i18n",
96 # Add STATIC_URL_PREFIX to the context
97 "ee.tools.context_processors.static",
100 LOGIN_URL = "/accounts/login/"
101 LOGIN_REDIRECT_URL = "/influences/"
103 # Allow authentication against the phpb user accounts
105 AUTHENTICATION_BACKENDS = (
106 'ee.auth.PhpBBBackend',
107 'django.contrib.auth.backends.ModelBackend',