root/settings.py

Revision 3, 3.2 KB (checked in by alex, 3 years ago)
  • minor url/settings fixes
Line 
1# Django settings for django-questionnaire project.
2
3import os.path
4
5DEBUG = True
6TEMPLATE_DEBUG = DEBUG
7
8ADMINS = (
9    ('Admin name', 'test@test.com'),
10)
11PROJECT_NAME = 'djangoquest'
12WORKING_DIRECTORY = '/home/alex/djangoquest'
13QUESTIONNAIRE_TEMPLATES = 'questionnaire/'
14QUESTIONNAIRE_URL = 'djangoquest-demo.aperte-it.com'
15
16MANAGERS = ADMINS
17
18DATABASE_ENGINE = 'sqlite3'           # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'ado_mssql'.
19DATABASE_NAME = '/tmp/test_quest.sqlite'             # Or path to database file if using sqlite3.
20DATABASE_USER = ''             # Not used with sqlite3.
21DATABASE_PASSWORD = ''         # Not used with sqlite3.
22DATABASE_HOST = ''             # Set to empty string for localhost. Not used with sqlite3.
23DATABASE_PORT = ''             # Set to empty string for default. Not used with sqlite3.
24
25# The session of a user ends if he closes his browser
26
27SESSION_COOKIE_DOMAIN = None
28
29CACHE_BACKEND = 'dummy://'
30
31# Local time zone for this installation. Choices can be found here:
32# http://www.postgresql.org/docs/8.1/static/datetime-keywords.html#DATETIME-TIMEZONE-SET-TABLE
33# although not all variations may be possible on all operating systems.
34# If running in a Windows environment this must be set to the same as your
35# system time zone.
36TIME_ZONE = 'America/Chicago'
37
38# Language code for this installation. All choices can be found here:
39# http://www.w3.org/TR/REC-html40/struct/dirlang.html#langcodes
40# http://blogs.law.harvard.edu/tech/stories/storyReader$15
41LANGUAGE_CODE = 'en-us'
42
43SITE_ID = 1
44
45# If you set this to False, Django will make some optimizations so as not
46# to load the internationalization machinery.
47USE_I18N = True
48
49# Absolute path to the directory that holds media.
50# Example: "/home/media/media.lawrence.com/"
51MEDIA_ROOT = ''
52STATIC_DOC_ROOT = WORKING_DIRECTORY + '/media'
53
54# URL that handles the media served from MEDIA_ROOT.
55# Example: "http://media.lawrence.com"
56MEDIA_URL = ''
57
58# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
59# trailing slash.
60# Examples: "http://foo.com/media/", "/media/".
61ADMIN_MEDIA_PREFIX = '/media/'
62
63# Make this unique, and don't share it with anybody.
64SECRET_KEY = 'a%t_zponly^xf$dc)okcglbxrz8f!4!38932hd+st67ultd6pg'
65
66# List of callables that know how to import templates from various sources.
67TEMPLATE_LOADERS = (
68    'django.template.loaders.filesystem.load_template_source',
69    'django.template.loaders.app_directories.load_template_source',
70#     'django.template.loaders.eggs.load_template_source',
71)
72
73MIDDLEWARE_CLASSES = (
74    'django.middleware.common.CommonMiddleware',
75    'django.contrib.sessions.middleware.SessionMiddleware',
76    'django.contrib.auth.middleware.AuthenticationMiddleware',
77    'django.middleware.doc.XViewMiddleware',
78)
79
80ROOT_URLCONF = PROJECT_NAME + '.urls'
81
82TEMPLATE_DIRS = (
83    # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
84    # Always use forward slashes, even on Windows.
85    # Don't forget to use absolute paths, not relative paths.
86    WORKING_DIRECTORY + '/templates',
87)
88
89INSTALLED_APPS = (
90    'django.contrib.auth',
91    'django.contrib.contenttypes',
92    'django.contrib.sessions',
93    'django.contrib.admin',
94    PROJECT_NAME + '.questionnaire'
95)
Note: See TracBrowser for help on using the browser.