2005-07-16 06:36:26 +08:00
|
|
|
# Django settings for {{ project_name }} project.
|
2005-07-13 09:25:57 +08:00
|
|
|
|
2005-07-16 06:29:10 +08:00
|
|
|
DEBUG = True
|
2005-11-24 07:10:17 +08:00
|
|
|
TEMPLATE_DEBUG = DEBUG
|
2005-07-13 09:25:57 +08:00
|
|
|
|
|
|
|
ADMINS = (
|
|
|
|
# ('Your Name', 'your_email@domain.com'),
|
|
|
|
)
|
|
|
|
|
|
|
|
MANAGERS = ADMINS
|
|
|
|
|
2009-12-22 23:18:51 +08:00
|
|
|
DATABASES = {
|
|
|
|
'default': {
|
|
|
|
'ENGINE': 'django.db.backends.', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
|
|
|
|
'NAME': '', # Or path to database file if using sqlite3.
|
|
|
|
'USER': '', # Not used with sqlite3.
|
|
|
|
'PASSWORD': '', # Not used with sqlite3.
|
|
|
|
'HOST': '', # Set to empty string for localhost. Not used with sqlite3.
|
|
|
|
'PORT': '', # Set to empty string for default. Not used with sqlite3.
|
|
|
|
}
|
|
|
|
}
|
2005-07-13 09:25:57 +08:00
|
|
|
|
2007-03-08 11:41:04 +08:00
|
|
|
# Local time zone for this installation. Choices can be found here:
|
2007-08-19 18:24:35 +08:00
|
|
|
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
|
2008-01-28 13:40:57 +08:00
|
|
|
# although not all choices may be available on all operating systems.
|
2010-02-26 23:33:27 +08:00
|
|
|
# On Unix systems, a value of None will cause Django to use the same
|
|
|
|
# timezone as the operating system.
|
2007-02-12 08:10:09 +08:00
|
|
|
# If running in a Windows environment this must be set to the same as your
|
|
|
|
# system time zone.
|
2005-10-20 00:03:24 +08:00
|
|
|
TIME_ZONE = 'America/Chicago'
|
|
|
|
|
|
|
|
# Language code for this installation. All choices can be found here:
|
2007-09-13 22:37:22 +08:00
|
|
|
# http://www.i18nguy.com/unicode/language-identifiers.html
|
2005-10-20 00:03:24 +08:00
|
|
|
LANGUAGE_CODE = 'en-us'
|
|
|
|
|
2005-07-16 11:48:36 +08:00
|
|
|
SITE_ID = 1
|
|
|
|
|
2006-08-18 11:42:28 +08:00
|
|
|
# If you set this to False, Django will make some optimizations so as not
|
|
|
|
# to load the internationalization machinery.
|
|
|
|
USE_I18N = True
|
|
|
|
|
2005-07-13 09:25:57 +08:00
|
|
|
# Absolute path to the directory that holds media.
|
|
|
|
# Example: "/home/media/media.lawrence.com/"
|
|
|
|
MEDIA_ROOT = ''
|
|
|
|
|
2007-06-01 18:00:00 +08:00
|
|
|
# URL that handles the media served from MEDIA_ROOT. Make sure to use a
|
|
|
|
# trailing slash if there is a path component (optional in other cases).
|
|
|
|
# Examples: "http://media.lawrence.com", "http://example.com/media/"
|
2005-07-13 09:25:57 +08:00
|
|
|
MEDIA_URL = ''
|
|
|
|
|
2005-10-19 09:09:05 +08:00
|
|
|
# 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/'
|
|
|
|
|
2005-07-20 08:37:45 +08:00
|
|
|
# Make this unique, and don't share it with anybody.
|
|
|
|
SECRET_KEY = ''
|
|
|
|
|
2005-10-17 10:37:50 +08:00
|
|
|
# List of callables that know how to import templates from various sources.
|
|
|
|
TEMPLATE_LOADERS = (
|
2009-12-14 20:08:23 +08:00
|
|
|
'django.template.loaders.filesystem.Loader',
|
|
|
|
'django.template.loaders.app_directories.Loader',
|
|
|
|
# 'django.template.loaders.eggs.Loader',
|
2005-10-17 10:37:50 +08:00
|
|
|
)
|
|
|
|
|
2005-08-16 08:41:42 +08:00
|
|
|
MIDDLEWARE_CLASSES = (
|
2006-05-26 12:05:02 +08:00
|
|
|
'django.middleware.common.CommonMiddleware',
|
|
|
|
'django.contrib.sessions.middleware.SessionMiddleware',
|
2009-10-27 08:36:34 +08:00
|
|
|
'django.middleware.csrf.CsrfViewMiddleware',
|
2006-05-26 12:05:02 +08:00
|
|
|
'django.contrib.auth.middleware.AuthenticationMiddleware',
|
2009-12-10 00:57:23 +08:00
|
|
|
'django.contrib.messages.middleware.MessageMiddleware',
|
2005-08-16 08:41:42 +08:00
|
|
|
)
|
|
|
|
|
2005-10-19 09:09:05 +08:00
|
|
|
ROOT_URLCONF = '{{ project_name }}.urls'
|
2005-07-17 06:58:29 +08:00
|
|
|
|
2005-07-13 09:25:57 +08:00
|
|
|
TEMPLATE_DIRS = (
|
2006-08-05 09:48:33 +08:00
|
|
|
# Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
|
2005-12-31 12:03:40 +08:00
|
|
|
# Always use forward slashes, even on Windows.
|
2006-08-05 09:48:33 +08:00
|
|
|
# Don't forget to use absolute paths, not relative paths.
|
2005-07-13 09:25:57 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
INSTALLED_APPS = (
|
2006-05-02 09:31:56 +08:00
|
|
|
'django.contrib.auth',
|
|
|
|
'django.contrib.contenttypes',
|
|
|
|
'django.contrib.sessions',
|
|
|
|
'django.contrib.sites',
|
2009-12-10 00:57:23 +08:00
|
|
|
'django.contrib.messages',
|
2010-02-22 07:39:45 +08:00
|
|
|
# Uncomment the next line to enable the admin:
|
|
|
|
# 'django.contrib.admin',
|
2005-07-13 09:25:57 +08:00
|
|
|
)
|