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
|
|
|
|
|
2007-06-26 20:58:42 +08:00
|
|
|
DATABASE_ENGINE = '' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
|
2005-07-22 12:18:03 +08:00
|
|
|
DATABASE_NAME = '' # Or path to database file if using sqlite3.
|
|
|
|
DATABASE_USER = '' # Not used with sqlite3.
|
|
|
|
DATABASE_PASSWORD = '' # Not used with sqlite3.
|
|
|
|
DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3.
|
2005-10-14 11:43:01 +08:00
|
|
|
DATABASE_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.
|
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 = (
|
2006-05-02 09:31:56 +08:00
|
|
|
'django.template.loaders.filesystem.load_template_source',
|
|
|
|
'django.template.loaders.app_directories.load_template_source',
|
|
|
|
# 'django.template.loaders.eggs.load_template_source',
|
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',
|
Fixed #9977 - CsrfMiddleware gets template tag added, session dependency removed, and turned on by default.
This is a large change to CSRF protection for Django. It includes:
* removing the dependency on the session framework.
* deprecating CsrfResponseMiddleware, and replacing with a core template tag.
* turning on CSRF protection by default by adding CsrfViewMiddleware to
the default value of MIDDLEWARE_CLASSES.
* protecting all contrib apps (whatever is in settings.py)
using a decorator.
For existing users of the CSRF functionality, it should be a seamless update,
but please note that it includes DEPRECATION of features in Django 1.1,
and there are upgrade steps which are detailed in the docs.
Many thanks to 'Glenn' and 'bthomas', who did a lot of the thinking and work
on the patch, and to lots of other people including Simon Willison and
Russell Keith-Magee who refined the ideas.
Details of the rationale for these changes is found here:
http://code.djangoproject.com/wiki/CsrfProtection
As of this commit, the CSRF code is mainly in 'contrib'. The code will be
moved to core in a separate commit, to make the changeset as readable as
possible.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@11660 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-10-27 07:23:07 +08:00
|
|
|
'django.contrib.csrf.middleware.CsrfViewMiddleware',
|
2006-05-26 12:05:02 +08:00
|
|
|
'django.contrib.auth.middleware.AuthenticationMiddleware',
|
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',
|
2005-07-13 09:25:57 +08:00
|
|
|
)
|