# Django settings for ee project.
from dbsettings import *
+import os
+
+PROJECT_DIR = os.path.dirname(__file__)
DEBUG = True
TEMPLATE_DEBUG = DEBUG
#LANGUAGE_CODE = 'en-us'
LANGUAGE_CODE = 'nl'
LANGUAGES = (
- ('en', 'English'),
('nl', 'Nederlands'),
+ ('en', 'English'),
)
SITE_ID = 1
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.middleware.doc.XViewMiddleware',
+ # Let's keep this disabled (until we can offer language selection to
+ # users).
+ #'django.middleware.locale.LocaleMiddleware',
)
ROOT_URLCONF = 'ee.urls'
# Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
# Always use forward slashes, even on Windows.
# Don't forget to use absolute paths, not relative paths.
- '/home/matthijs/docs/src/django/ee/templates',
+ os.path.join(PROJECT_DIR, 'templates'),
)
INSTALLED_APPS = (
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.admin',
- 'ee.events',
- 'ee.influences',
- 'ee.base',
+ 'ee.events',
+ 'ee.influences',
+ 'ee.base',
+ 'ee.tools',
)
TEMPLATE_CONTEXT_PROCESSORS = (
- "django.core.context_processors.auth",
- "django.core.context_processors.debug",
- "django.core.context_processors.i18n",
- # Add STATIC_URL_PREFIX to the context
- "ee.tools.context_processors.static",
+ "django.core.context_processors.auth",
+ "django.core.context_processors.debug",
+ "django.core.context_processors.i18n",
+ # Add STATIC_URL_PREFIX to the context
+ "ee.tools.context_processors.static",
)
LOGIN_URL = "/accounts/login/"
# Allow authentication against the phpb user accounts
AUTHENTICATION_BACKENDS = (
- 'ee.auth.PhpBBBackend',
- 'django.contrib.auth.backends.ModelBackend',
+ 'ee.auth.PhpBBBackend',
+ 'django.contrib.auth.backends.ModelBackend',
)
+
+AUTH_PROFILE_MODULE = 'base.UserProfile'
+# vim: set sts=4 sw=4 expandtab: