-# Django settings for ee project.
+# Django settings for xerxes project.
+import os
+
+# Import database settings from a default file (so we can keep those out
+# of git).
from dbsettings import *
-DEBUG = True
-TEMPLATE_DEBUG = DEBUG
+PROJECT_DIR = os.path.dirname(__file__)
+
+DEBUG = False
+TEMPLATE_DEBUG = False
ADMINS = (
- # ('Your Name', 'your_email@domain.com'),
+ # Server errors get sent here
+ ('Matthijs Kooijman', 'matthijs@stdin.nl'),
)
MANAGERS = ADMINS
# Language code for this installation. All choices can be found here:
# http://www.w3.org/TR/REC-html40/struct/dirlang.html#langcodes
# http://blogs.law.harvard.edu/tech/stories/storyReader$15
-LANGUAGE_CODE = 'en-us'
-
-SITE_ID = 1
+#LANGUAGE_CODE = 'en-us'
+LANGUAGE_CODE = 'nl'
+LANGUAGES = (
+ ('nl', 'Nederlands'),
+ ('en', 'English'),
+)
# If you set this to False, Django will make some optimizations so as not
# to load the internationalization machinery.
# Absolute path to the directory that holds media.
# Example: "/home/media/media.lawrence.com/"
-MEDIA_ROOT = ''
+MEDIA_ROOT = os.path.join(PROJECT_DIR, 'media')
# URL that handles the media served from MEDIA_ROOT.
# Example: "http://media.lawrence.com"
-MEDIA_URL = ''
+MEDIA_URL = '/media/'
# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
# trailing slash.
# Examples: "http://foo.com/media/", "/media/".
-ADMIN_MEDIA_PREFIX = '/media/'
+ADMIN_MEDIA_PREFIX = '/admin/media/'
# Make this unique, and don't share it with anybody.
SECRET_KEY = '6-zo+-1@-342%k4%82aw#kxr4f%5w00xhwby5$&fa@+!dh@(2='
'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'
+ROOT_URLCONF = 'xerxes.urls'
TEMPLATE_DIRS = (
# 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.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
- 'django.contrib.sites',
'django.contrib.admin',
- 'ee.events',
- 'ee.influences',
- 'ee.base',
+ 'xerxes.events',
+ 'xerxes.influences',
+ 'xerxes.base',
+ 'xerxes.tools',
+ 'threadedcomments',
)
TEMPLATE_CONTEXT_PROCESSORS = (
- "django.core.context_processors.auth",
- "django.core.context_processors.debug",
- "django.core.context_processors.i18n",
+ "django.core.context_processors.auth",
+ "django.core.context_processors.debug",
+ "django.core.context_processors.i18n",
+ "django.core.context_processors.media",
+ "django.core.context_processors.request",
)
LOGIN_URL = "/accounts/login/"
+LOGIN_REDIRECT_URL = "/influences/"
# Allow authentication against the phpb user accounts
AUTHENTICATION_BACKENDS = (
- 'ee.auth.PhpBBBackend',
- 'django.contrib.auth.backends.ModelBackend',
+ 'xerxes.auth.PhpBBBackend',
+ 'django.contrib.auth.backends.ModelBackend',
)
+
+AUTH_PROFILE_MODULE = 'base.UserProfile'
+
+# Import local settings, that are specific to this installation. These
+# can override any settings specified here.
+try:
+ from localsettings import *
+except ImportError:
+ pass
+
+# vim: set sts=4 sw=4 expandtab: