source: sampleserver/settings.py@ 6219

Last change on this file since 6219 was 6219, checked in by roland, 16 years ago

made DJANGOROOT in settings.py platform safe by using os.path.join

File size: 2.2 KB
RevLine 
[6180]1# Django settings for exodus project.
[6216]2import os
[6178]3
[6219]4DJANGOROOT= os.path.join(os.path.dirname(__file__), '..')
[6180]5
[6178]6DEBUG = True
7TEMPLATE_DEBUG = DEBUG
8
9ADMINS = (
[6201]10 ('Administrator', 'admin@example.org'),
[6178]11)
12
13MANAGERS = ADMINS
14
15DATABASE_ENGINE = 'sqlite3' # 'postgresql', 'mysql', 'sqlite3' or 'ado_mssql'.
[6180]16DATABASE_NAME = DJANGOROOT + '/sqllite.db' # Or path to database file if using sqlite3.
[6178]17DATABASE_USER = 'roland' # Not used with sqlite3.
18DATABASE_PASSWORD = '' # Not used with sqlite3.
19DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3.
20DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3.
21
22# Local time zone for this installation. All choices can be found here:
23# http://www.postgresql.org/docs/current/static/datetime-keywords.html#DATETIME-TIMEZONE-SET-TABLE
24TIME_ZONE = 'Europe/Amsterdam'
25
26# Language code for this installation. All choices can be found here:
27# http://www.w3.org/TR/REC-html40/struct/dirlang.html#langcodes
28# http://blogs.law.harvard.edu/tech/stories/storyReader$15
29LANGUAGE_CODE = 'en-us'
30
31SITE_ID = 1
32
33# Make this unique, and don't share it with anybody.
34SECRET_KEY = 'l+plhHJKNIkiasdfh12lsk0Lkf,.=+-asdjdknmnaladfasdmnm,90934jknmnsdaf09'
35
36# List of callables that know how to import templates from various sources.
37TEMPLATE_LOADERS = (
38 'django.template.loaders.filesystem.load_template_source',
39 'django.template.loaders.app_directories.load_template_source',
40# 'django.template.loaders.eggs.load_template_source',
41)
42
43MIDDLEWARE_CLASSES = (
44 'django.middleware.common.CommonMiddleware',
45 'django.contrib.sessions.middleware.SessionMiddleware',
46 'django.contrib.auth.middleware.AuthenticationMiddleware',
47 'django.middleware.doc.XViewMiddleware',
48)
49
[6183]50ROOT_URLCONF = 'sampleserver.urls'
[6178]51
52TEMPLATE_DIRS = (
53 # Put strings here, like "/home/html/django_templates".
54 # Always use forward slashes, even on Windows.
55)
56
57INSTALLED_APPS = (
58 'django.contrib.auth',
59 'django.contrib.contenttypes',
60 'django.contrib.sessions',
61 'django.contrib.sites',
62 'django.contrib.admin',
[6216]63 'django.contrib.databrowse',
64 'django_extensions',
[6180]65 'exodus',
[6178]66)
Note: See TracBrowser for help on using the repository browser.