2005-07-13 09:25:57 +08:00
|
|
|
# Default Django settings. Override these with settings in the module
|
|
|
|
# pointed-to by the DJANGO_SETTINGS_MODULE environment variable.
|
|
|
|
|
|
|
|
####################
|
|
|
|
# CORE #
|
|
|
|
####################
|
|
|
|
|
|
|
|
DEBUG = False
|
|
|
|
|
|
|
|
# Whether to use the "Etag" header. This saves bandwidth but slows down performance.
|
|
|
|
USE_ETAGS = False
|
|
|
|
|
2005-07-14 12:03:11 +08:00
|
|
|
# People who get code error notifications.
|
|
|
|
# In the format (('Full Name', 'email@domain.com'), ('Full Name', 'anotheremail@domain.com'))
|
|
|
|
ADMINS = ()
|
2005-07-13 09:25:57 +08:00
|
|
|
|
2005-07-14 12:27:55 +08:00
|
|
|
# Tuple of IP addresses, as strings, that:
|
2005-07-13 09:25:57 +08:00
|
|
|
# * See debug comments, when DEBUG is true
|
|
|
|
# * Receive x-headers
|
2005-07-14 12:27:55 +08:00
|
|
|
INTERNAL_IPS = ()
|
2005-07-13 09:25:57 +08:00
|
|
|
|
|
|
|
# Local time zone for this installation. All choices can be found here:
|
|
|
|
# http://www.postgresql.org/docs/current/static/datetime-keywords.html#DATETIME-TIMEZONE-SET-TABLE
|
|
|
|
TIME_ZONE = 'America/Chicago'
|
|
|
|
|
|
|
|
# Language code for this installation. All choices can be found here:
|
|
|
|
# http://www.w3.org/TR/REC-html40/struct/dirlang.html#langcodes
|
|
|
|
# http://blogs.law.harvard.edu/tech/stories/storyReader$15
|
|
|
|
LANGUAGE_CODE = 'en-us'
|
|
|
|
|
|
|
|
# Not-necessarily-technical managers of the site. They get broken link
|
|
|
|
# notifications and other various e-mails.
|
|
|
|
MANAGERS = ADMINS
|
|
|
|
|
2005-07-14 12:27:55 +08:00
|
|
|
# E-mail address that error messages come from.
|
|
|
|
SERVER_EMAIL = 'root@localhost'
|
2005-07-13 09:25:57 +08:00
|
|
|
|
2005-07-14 12:27:55 +08:00
|
|
|
# Whether to send broken-link e-mails.
|
2005-07-13 09:25:57 +08:00
|
|
|
SEND_BROKEN_LINK_EMAILS = True
|
|
|
|
|
2005-07-14 12:27:55 +08:00
|
|
|
# Database connection info.
|
|
|
|
DATABASE_ENGINE = 'postgresql' # 'postgresql' or 'mysql'
|
|
|
|
DATABASE_NAME = ''
|
|
|
|
DATABASE_USER = ''
|
2005-07-13 09:25:57 +08:00
|
|
|
DATABASE_PASSWORD = ''
|
2005-07-14 12:27:55 +08:00
|
|
|
DATABASE_HOST = '' # Set to empty string for localhost
|
2005-07-13 09:25:57 +08:00
|
|
|
|
2005-07-14 12:27:55 +08:00
|
|
|
# Host for sending e-mail.
|
2005-07-13 09:25:57 +08:00
|
|
|
EMAIL_HOST = 'localhost'
|
|
|
|
|
2005-07-14 12:27:55 +08:00
|
|
|
# Name of the session cookie. This can be whatever you want.
|
2005-07-13 09:25:57 +08:00
|
|
|
AUTH_SESSION_COOKIE = 'rizzo'
|
|
|
|
|
2005-07-14 12:27:55 +08:00
|
|
|
# List of locations of the template source files, in search order.
|
|
|
|
TEMPLATE_DIRS = ()
|
2005-07-13 09:25:57 +08:00
|
|
|
|
2005-07-14 12:27:55 +08:00
|
|
|
# Default e-mail address to use for various automated correspondence from
|
|
|
|
# the site managers.
|
|
|
|
DEFAULT_FROM_EMAIL = 'webmaster@localhost'
|
2005-07-13 09:25:57 +08:00
|
|
|
|
2005-07-14 12:27:55 +08:00
|
|
|
# Whether to append trailing slashes to URLs.
|
2005-07-13 09:25:57 +08:00
|
|
|
APPEND_SLASH = True
|
|
|
|
|
2005-07-14 12:27:55 +08:00
|
|
|
# Whether to prepend the "www." subdomain to URLs that don't have it.
|
2005-07-13 09:25:57 +08:00
|
|
|
PREPEND_WWW = False
|
|
|
|
|
2005-07-14 12:27:55 +08:00
|
|
|
# List of compiled regular expression objects representing User-Agent strings
|
|
|
|
# that are not allowed to visit any page, systemwide. Use this for bad
|
|
|
|
# robots/crawlers. Here are a few examples:
|
|
|
|
# import re
|
|
|
|
# DISALLOWED_USER_AGENTS = (
|
|
|
|
# re.compile(r'^NaverBot.*'),
|
|
|
|
# re.compile(r'^EmailSiphon.*'),
|
|
|
|
# re.compile(r'^SiteSucker.*'),
|
|
|
|
# re.compile(r'^sohu-search')
|
|
|
|
# )
|
|
|
|
DISALLOWED_USER_AGENTS = ()
|
2005-07-13 09:25:57 +08:00
|
|
|
|
|
|
|
ABSOLUTE_URL_OVERRIDES = {}
|
|
|
|
|
2005-07-14 12:27:55 +08:00
|
|
|
# Tuple of strings representing allowed prefixes for the {% ssi %} tag.
|
|
|
|
# Example: ('/home/html', '/var/www')
|
|
|
|
ALLOWED_INCLUDE_ROOTS = ()
|
2005-07-13 09:25:57 +08:00
|
|
|
|
2005-07-14 12:27:55 +08:00
|
|
|
# If this is a admin settings module, this should be a list of
|
|
|
|
# settings modules (in the format 'foo.bar.baz') for which this admin
|
|
|
|
# is an admin.
|
2005-07-13 09:25:57 +08:00
|
|
|
ADMIN_FOR = []
|
|
|
|
|
2005-07-14 12:27:55 +08:00
|
|
|
# 404s that may be ignored.
|
2005-07-13 09:25:57 +08:00
|
|
|
IGNORABLE_404_STARTS = ('/cgi-bin/', '/_vti_bin', '/_vti_inf')
|
|
|
|
IGNORABLE_404_ENDS = ('mail.pl', 'mailform.pl', 'mail.cgi', 'mailform.cgi', 'favicon.ico', '.php')
|
|
|
|
|
|
|
|
##############
|
2005-07-14 12:27:55 +08:00
|
|
|
# MIDDLEWARE #
|
2005-07-13 09:25:57 +08:00
|
|
|
##############
|
|
|
|
|
|
|
|
# List of middleware classes to use. Order is important; in the request phase,
|
|
|
|
# this middleware classes will be applied in the order given, and in the
|
|
|
|
# response phase the middleware will be applied in reverse order.
|
|
|
|
MIDDLEWARE_CLASSES = (
|
|
|
|
"django.middleware.common.CommonMiddleware",
|
|
|
|
"django.middleware.doc.XViewMiddleware",
|
|
|
|
)
|
|
|
|
|
|
|
|
#########
|
|
|
|
# CACHE #
|
|
|
|
#########
|
|
|
|
|
|
|
|
# The cache backend to use. See the docstring in django.core.cache for the
|
2005-07-14 12:27:55 +08:00
|
|
|
# possible values.
|
2005-07-13 09:25:57 +08:00
|
|
|
CACHE_BACKEND = 'simple://'
|
|
|
|
|
2005-07-14 12:27:55 +08:00
|
|
|
# Set to a string like ".lawrence.com", or None for a standard domain cookie.
|
|
|
|
REGISTRATION_COOKIE_DOMAIN = None
|
2005-07-13 09:25:57 +08:00
|
|
|
|
|
|
|
####################
|
|
|
|
# COMMENTS #
|
|
|
|
####################
|
|
|
|
|
|
|
|
COMMENTS_ALLOW_PROFANITIES = False
|
|
|
|
|
|
|
|
# The group ID that designates which users are banned.
|
|
|
|
# Set to None if you're not using it.
|
2005-07-14 12:27:55 +08:00
|
|
|
COMMENTS_BANNED_USERS_GROUP = None
|
2005-07-13 09:25:57 +08:00
|
|
|
|
|
|
|
# The group ID that designates which users can moderate comments.
|
|
|
|
# Set to None if you're not using it.
|
2005-07-14 12:27:55 +08:00
|
|
|
COMMENTS_MODERATORS_GROUP = None
|
2005-07-13 09:25:57 +08:00
|
|
|
|
|
|
|
# The group ID that designates the users whose comments should be e-mailed to MANAGERS.
|
|
|
|
# Set to None if you're not using it.
|
2005-07-14 12:27:55 +08:00
|
|
|
COMMENTS_SKETCHY_USERS_GROUP = None
|
2005-07-13 09:25:57 +08:00
|
|
|
|
|
|
|
# The system will e-mail MANAGERS the first COMMENTS_FIRST_FEW comments by each
|
|
|
|
# user. Set this to 0 if you want to disable it.
|
2005-07-14 12:27:55 +08:00
|
|
|
COMMENTS_FIRST_FEW = 0
|
2005-07-13 09:25:57 +08:00
|
|
|
|
2005-07-14 12:27:55 +08:00
|
|
|
# A tuple of IP addresses that have been banned from participating in various
|
|
|
|
# Django-powered features.
|
|
|
|
BANNED_IPS = ()
|
2005-07-13 09:25:57 +08:00
|
|
|
|
2005-07-14 12:27:55 +08:00
|
|
|
# Absolute path to the directory that holds media.
|
|
|
|
# Example: "/home/media/media.lawrence.com/"
|
|
|
|
MEDIA_ROOT = ''
|
2005-07-13 09:25:57 +08:00
|
|
|
|
2005-07-14 12:27:55 +08:00
|
|
|
# URL that handles the media served from MEDIA_ROOT.
|
|
|
|
# Example: "http://media.lawrence.com"
|
|
|
|
MEDIA_URL = ''
|