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.
|
|
|
|
|
2005-11-04 12:59:46 +08:00
|
|
|
from django.utils.translation import gettext_lazy as _
|
|
|
|
|
2005-07-13 09:25:57 +08:00
|
|
|
####################
|
|
|
|
# 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'
|
|
|
|
|
2005-11-04 22:53:24 +08:00
|
|
|
# Languages we provide translations for, out of the box. The language name
|
|
|
|
# should be the utf-8 encoded local name for the language.
|
2005-11-04 12:59:46 +08:00
|
|
|
LANGUAGES = (
|
2005-11-10 19:50:24 +08:00
|
|
|
('bn', _('Bengali')),
|
2005-11-04 12:59:46 +08:00
|
|
|
('cs', _('Czech')),
|
2005-11-09 18:25:02 +08:00
|
|
|
('cy', _('Welsh')),
|
2005-11-16 02:37:41 +08:00
|
|
|
('da', _('Danish')),
|
2005-11-04 12:59:46 +08:00
|
|
|
('de', _('German')),
|
|
|
|
('en', _('English')),
|
|
|
|
('es', _('Spanish')),
|
|
|
|
('fr', _('French')),
|
|
|
|
('gl', _('Galician')),
|
2005-11-14 03:38:31 +08:00
|
|
|
('is', _('Icelandic')),
|
2005-11-04 12:59:46 +08:00
|
|
|
('it', _('Italian')),
|
2005-11-05 00:09:38 +08:00
|
|
|
('no', _('Norwegian')),
|
2005-11-04 12:59:46 +08:00
|
|
|
('pt-br', _('Brazilian')),
|
2005-11-09 18:25:02 +08:00
|
|
|
('ro', _('Romanian')),
|
2005-11-04 12:59:46 +08:00
|
|
|
('ru', _('Russian')),
|
2005-11-09 18:25:02 +08:00
|
|
|
('sk', _('Slovak')),
|
2005-11-04 12:59:46 +08:00
|
|
|
('sr', _('Serbian')),
|
2005-11-14 02:02:55 +08:00
|
|
|
('sv', _('Swedish')),
|
2005-11-04 22:53:24 +08:00
|
|
|
('zh-cn', _('Simplified Chinese')),
|
2005-11-04 12:59:46 +08:00
|
|
|
)
|
|
|
|
|
2005-07-13 09:25:57 +08:00
|
|
|
# Not-necessarily-technical managers of the site. They get broken link
|
|
|
|
# notifications and other various e-mails.
|
|
|
|
MANAGERS = ADMINS
|
|
|
|
|
2005-10-06 10:27:08 +08:00
|
|
|
# Default content type and charset to use for all HttpResponse objects, if a
|
|
|
|
# MIME type isn't manually specified. These are used to construct the
|
|
|
|
# Content-Type header.
|
|
|
|
DEFAULT_CONTENT_TYPE = 'text/html'
|
|
|
|
DEFAULT_CHARSET = 'utf-8'
|
2005-09-23 09:50:01 +08:00
|
|
|
|
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-08-02 04:01:18 +08:00
|
|
|
SEND_BROKEN_LINK_EMAILS = False
|
2005-07-13 09:25:57 +08:00
|
|
|
|
2005-07-14 12:27:55 +08:00
|
|
|
# Database connection info.
|
2005-10-15 09:37:16 +08:00
|
|
|
DATABASE_ENGINE = 'postgresql' # 'postgresql', 'mysql', 'sqlite3' or 'ado_mssql'.
|
|
|
|
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.
|
|
|
|
DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3.
|
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-11-12 06:56:18 +08:00
|
|
|
# List of strings representing installed apps.
|
|
|
|
INSTALLED_APPS = ()
|
|
|
|
|
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-09-14 09:24:36 +08:00
|
|
|
# Extension on all templates.
|
|
|
|
TEMPLATE_FILE_EXTENSION = '.html'
|
|
|
|
|
2005-10-15 06:22:12 +08:00
|
|
|
# List of callables that know how to import templates from various sources.
|
|
|
|
# See the comments in django/core/template/loader.py for interface
|
|
|
|
# documentation.
|
|
|
|
TEMPLATE_LOADERS = (
|
|
|
|
'django.core.template.loaders.filesystem.load_template_source',
|
2005-10-25 10:02:58 +08:00
|
|
|
'django.core.template.loaders.app_directories.load_template_source',
|
2005-10-15 06:22:12 +08:00
|
|
|
# 'django.core.template.loaders.eggs.load_template_source',
|
|
|
|
)
|
|
|
|
|
2005-07-17 00:38:28 +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-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-09-28 00:32:21 +08:00
|
|
|
# Subject-line prefix for email messages send with django.core.mail.mail_admins
|
|
|
|
# or ...mail_managers. Make sure to include the trailing space.
|
|
|
|
EMAIL_SUBJECT_PREFIX = '[Django] '
|
|
|
|
|
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-10-17 12:36:51 +08:00
|
|
|
ADMIN_FOR = ()
|
2005-07-13 09:25:57 +08:00
|
|
|
|
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-20 08:37:45 +08:00
|
|
|
# A secret key for this particular Django installation. Used in secret-key
|
|
|
|
# hashing algorithms. Set this in your settings, or Django will complain
|
|
|
|
# loudly.
|
|
|
|
SECRET_KEY = ''
|
|
|
|
|
2005-09-28 00:34:10 +08:00
|
|
|
# Path to the "jing" executable -- needed to validate XMLFields
|
2005-10-05 02:05:37 +08:00
|
|
|
JING_PATH = "/usr/bin/jing"
|
2005-09-28 00:34:10 +08:00
|
|
|
|
2005-11-07 07:16:24 +08:00
|
|
|
# Absolute path to the directory that holds media.
|
|
|
|
# Example: "/home/media/media.lawrence.com/"
|
|
|
|
MEDIA_ROOT = ''
|
|
|
|
|
|
|
|
# URL that handles the media served from MEDIA_ROOT.
|
|
|
|
# Example: "http://media.lawrence.com"
|
|
|
|
MEDIA_URL = ''
|
|
|
|
|
2005-11-07 07:49:03 +08:00
|
|
|
# Default formatting for date objects. See all available format strings here:
|
|
|
|
# http://www.djangoproject.com/documentation/templates/#now
|
|
|
|
DATE_FORMAT = 'N j, Y'
|
|
|
|
|
|
|
|
# Default formatting for datetime objects. See all available format strings here:
|
|
|
|
# http://www.djangoproject.com/documentation/templates/#now
|
|
|
|
DATETIME_FORMAT = 'N j, Y, P'
|
|
|
|
|
|
|
|
# Default formatting for time objects. See all available format strings here:
|
|
|
|
# http://www.djangoproject.com/documentation/templates/#now
|
|
|
|
TIME_FORMAT = 'P'
|
|
|
|
|
2005-07-13 09:25:57 +08:00
|
|
|
##############
|
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 = (
|
2005-08-17 07:02:06 +08:00
|
|
|
"django.middleware.sessions.SessionMiddleware",
|
2005-10-09 09:02:19 +08:00
|
|
|
# "django.middleware.http.ConditionalGetMiddleware",
|
|
|
|
# "django.middleware.gzip.GZipMiddleware",
|
2005-07-13 09:25:57 +08:00
|
|
|
"django.middleware.common.CommonMiddleware",
|
|
|
|
"django.middleware.doc.XViewMiddleware",
|
|
|
|
)
|
|
|
|
|
2005-08-17 06:54:05 +08:00
|
|
|
############
|
|
|
|
# SESSIONS #
|
|
|
|
############
|
|
|
|
|
|
|
|
SESSION_COOKIE_NAME = 'hotclub' # Cookie name. This can be whatever you want.
|
|
|
|
SESSION_COOKIE_AGE = 60 * 60 * 24 * 7 * 2 # Age of cookie, in seconds (default: 2 weeks).
|
|
|
|
SESSION_COOKIE_DOMAIN = None # A string like ".lawrence.com", or None for standard domain cookie.
|
|
|
|
|
2005-07-13 09:25:57 +08:00
|
|
|
#########
|
|
|
|
# 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-10-09 09:02:19 +08:00
|
|
|
CACHE_MIDDLEWARE_KEY_PREFIX = ''
|
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 = ()
|