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 = (
|
2010-11-03 00:19:17 +08:00
|
|
|
# ('Your Name', 'your_email@example.com'),
|
2005-07-13 09:25:57 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
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
|
|
|
|
|
2010-03-15 20:16:21 +08:00
|
|
|
# If you set this to False, Django will not format dates, numbers and
|
|
|
|
# calendars according to the current locale
|
|
|
|
USE_L10N = True
|
|
|
|
|
2010-11-17 07:48:08 +08:00
|
|
|
# Absolute filesystem path to the directory that will hold user-uploaded files.
|
2010-10-20 09:33:24 +08:00
|
|
|
# Example: "/home/media/media.lawrence.com/media/"
|
2005-07-13 09:25:57 +08:00
|
|
|
MEDIA_ROOT = ''
|
|
|
|
|
2007-06-01 18:00:00 +08:00
|
|
|
# URL that handles the media served from MEDIA_ROOT. Make sure to use a
|
2011-01-02 09:33:11 +08:00
|
|
|
# trailing slash.
|
2010-11-17 23:36:26 +08:00
|
|
|
# Examples: "http://media.lawrence.com/media/", "http://example.com/media/"
|
2005-07-13 09:25:57 +08:00
|
|
|
MEDIA_URL = ''
|
|
|
|
|
2011-02-01 22:28:07 +08:00
|
|
|
# Absolute path to the directory static files should be collected to.
|
|
|
|
# Don't put anything in this directory yourself; store your static files
|
|
|
|
# in apps' "static/" subdirectories and in STATICFILES_DIRS.
|
2010-10-20 09:33:24 +08:00
|
|
|
# Example: "/home/media/media.lawrence.com/static/"
|
2010-11-17 23:36:26 +08:00
|
|
|
STATIC_ROOT = ''
|
2010-10-20 09:33:24 +08:00
|
|
|
|
2011-02-01 22:28:07 +08:00
|
|
|
# URL prefix for static files.
|
2010-11-17 23:36:26 +08:00
|
|
|
# Example: "http://media.lawrence.com/static/"
|
|
|
|
STATIC_URL = '/static/'
|
2010-10-20 09:33:24 +08:00
|
|
|
|
2011-02-01 22:28:07 +08:00
|
|
|
# URL prefix for admin static files -- CSS, JavaScript and images.
|
2010-10-20 09:33:24 +08:00
|
|
|
# Make sure to use a trailing slash.
|
|
|
|
# Examples: "http://foo.com/static/admin/", "/static/admin/".
|
|
|
|
ADMIN_MEDIA_PREFIX = '/static/admin/'
|
|
|
|
|
2011-02-01 22:28:07 +08:00
|
|
|
# Additional locations of static files
|
|
|
|
STATICFILES_DIRS = (
|
|
|
|
# Put strings here, like "/home/html/static" or "C:/www/django/static".
|
|
|
|
# Always use forward slashes, even on Windows.
|
|
|
|
# Don't forget to use absolute paths, not relative paths.
|
2011-02-13 03:11:42 +08:00
|
|
|
)
|
2010-10-20 09:33:24 +08:00
|
|
|
|
|
|
|
# List of finder classes that know how to find static files in
|
|
|
|
# various locations.
|
|
|
|
STATICFILES_FINDERS = (
|
|
|
|
'django.contrib.staticfiles.finders.FileSystemFinder',
|
|
|
|
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
|
|
|
|
# 'django.contrib.staticfiles.finders.DefaultStorageFinder',
|
|
|
|
)
|
2005-10-19 09:09:05 +08:00
|
|
|
|
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-10-20 09:33:24 +08:00
|
|
|
'django.contrib.staticfiles',
|
2010-02-22 07:39:45 +08:00
|
|
|
# Uncomment the next line to enable the admin:
|
|
|
|
# 'django.contrib.admin',
|
2010-08-28 20:38:05 +08:00
|
|
|
# Uncomment the next line to enable admin documentation:
|
|
|
|
# 'django.contrib.admindocs',
|
2005-07-13 09:25:57 +08:00
|
|
|
)
|
2010-10-04 23:12:39 +08:00
|
|
|
|
|
|
|
# A sample logging configuration. The only tangible logging
|
|
|
|
# performed by this configuration is to send an email to
|
|
|
|
# the site admins on every HTTP 500 error.
|
|
|
|
# See http://docs.djangoproject.com/en/dev/topics/logging for
|
|
|
|
# more details on how to customize your logging configuration.
|
|
|
|
LOGGING = {
|
|
|
|
'version': 1,
|
|
|
|
'disable_existing_loggers': False,
|
|
|
|
'handlers': {
|
|
|
|
'mail_admins': {
|
|
|
|
'level': 'ERROR',
|
|
|
|
'class': 'django.utils.log.AdminEmailHandler'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
'loggers': {
|
2011-02-13 03:11:42 +08:00
|
|
|
'django.request': {
|
2010-10-04 23:12:39 +08:00
|
|
|
'handlers': ['mail_admins'],
|
|
|
|
'level': 'ERROR',
|
|
|
|
'propagate': True,
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|