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.
|
|
|
|
|
2006-07-04 11:58:45 +08:00
|
|
|
# This is defined here as a do-nothing function because we can't import
|
|
|
|
# django.utils.translation -- that module depends on the settings.
|
|
|
|
gettext_noop = lambda s: s
|
2005-11-04 12:59:46 +08:00
|
|
|
|
2005-07-13 09:25:57 +08:00
|
|
|
####################
|
|
|
|
# CORE #
|
|
|
|
####################
|
|
|
|
|
|
|
|
DEBUG = False
|
2005-11-24 07:10:17 +08:00
|
|
|
TEMPLATE_DEBUG = False
|
2005-07-13 09:25:57 +08:00
|
|
|
|
|
|
|
# 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:
|
2007-08-19 18:24:35 +08:00
|
|
|
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name (although not all
|
|
|
|
# systems may support all possibilities).
|
2005-07-13 09:25:57 +08:00
|
|
|
TIME_ZONE = 'America/Chicago'
|
|
|
|
|
|
|
|
# Language code for this installation. All choices can be found here:
|
2007-10-22 00:20:02 +08:00
|
|
|
# http://www.i18nguy.com/unicode/language-identifiers.html
|
2005-07-13 09:25:57 +08:00
|
|
|
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 = (
|
2006-07-10 22:14:00 +08:00
|
|
|
('ar', gettext_noop('Arabic')),
|
2006-07-04 11:58:45 +08:00
|
|
|
('bn', gettext_noop('Bengali')),
|
2007-05-14 16:12:03 +08:00
|
|
|
('bg', gettext_noop('Bulgarian')),
|
2007-02-15 08:07:07 +08:00
|
|
|
('ca', gettext_noop('Catalan')),
|
2006-07-04 11:58:45 +08:00
|
|
|
('cs', gettext_noop('Czech')),
|
|
|
|
('cy', gettext_noop('Welsh')),
|
|
|
|
('da', gettext_noop('Danish')),
|
|
|
|
('de', gettext_noop('German')),
|
|
|
|
('el', gettext_noop('Greek')),
|
|
|
|
('en', gettext_noop('English')),
|
|
|
|
('es', gettext_noop('Spanish')),
|
|
|
|
('es_AR', gettext_noop('Argentinean Spanish')),
|
2007-06-24 20:16:06 +08:00
|
|
|
('fa', gettext_noop('Persian')),
|
2006-09-11 22:53:36 +08:00
|
|
|
('fi', gettext_noop('Finnish')),
|
2006-07-04 11:58:45 +08:00
|
|
|
('fr', gettext_noop('French')),
|
2007-09-15 12:43:48 +08:00
|
|
|
('ga', gettext_noop('Gaeilge')),
|
2006-07-04 11:58:45 +08:00
|
|
|
('gl', gettext_noop('Galician')),
|
|
|
|
('hu', gettext_noop('Hungarian')),
|
|
|
|
('he', gettext_noop('Hebrew')),
|
2007-08-13 09:17:19 +08:00
|
|
|
('hr', gettext_noop('Croatian')),
|
2006-07-04 11:58:45 +08:00
|
|
|
('is', gettext_noop('Icelandic')),
|
|
|
|
('it', gettext_noop('Italian')),
|
|
|
|
('ja', gettext_noop('Japanese')),
|
2007-04-09 19:58:25 +08:00
|
|
|
('ko', gettext_noop('Korean')),
|
2007-09-14 03:51:26 +08:00
|
|
|
('km', gettext_noop('Khmer')),
|
2007-02-26 16:23:33 +08:00
|
|
|
('kn', gettext_noop('Kannada')),
|
2007-02-15 07:50:26 +08:00
|
|
|
('lv', gettext_noop('Latvian')),
|
2007-02-15 07:56:29 +08:00
|
|
|
('mk', gettext_noop('Macedonian')),
|
2006-07-04 11:58:45 +08:00
|
|
|
('nl', gettext_noop('Dutch')),
|
|
|
|
('no', gettext_noop('Norwegian')),
|
2006-10-17 00:23:28 +08:00
|
|
|
('pl', gettext_noop('Polish')),
|
2007-03-21 07:57:24 +08:00
|
|
|
('pt', gettext_noop('Portugese')),
|
2006-07-04 11:58:45 +08:00
|
|
|
('pt-br', gettext_noop('Brazilian')),
|
|
|
|
('ro', gettext_noop('Romanian')),
|
|
|
|
('ru', gettext_noop('Russian')),
|
|
|
|
('sk', gettext_noop('Slovak')),
|
|
|
|
('sl', gettext_noop('Slovenian')),
|
|
|
|
('sr', gettext_noop('Serbian')),
|
|
|
|
('sv', gettext_noop('Swedish')),
|
2006-07-21 22:47:14 +08:00
|
|
|
('ta', gettext_noop('Tamil')),
|
2007-03-09 12:42:30 +08:00
|
|
|
('te', gettext_noop('Telugu')),
|
2006-09-25 21:30:16 +08:00
|
|
|
('tr', gettext_noop('Turkish')),
|
2006-07-04 11:58:45 +08:00
|
|
|
('uk', gettext_noop('Ukrainian')),
|
|
|
|
('zh-cn', gettext_noop('Simplified Chinese')),
|
|
|
|
('zh-tw', gettext_noop('Traditional Chinese')),
|
2005-11-04 12:59:46 +08:00
|
|
|
)
|
|
|
|
|
2006-05-16 15:35:20 +08:00
|
|
|
# Languages using BiDi (right-to-left) layout
|
2007-08-11 14:28:51 +08:00
|
|
|
LANGUAGES_BIDI = ("he", "ar", "fa")
|
2006-05-16 15:35:20 +08:00
|
|
|
|
2006-07-01 11:09:14 +08:00
|
|
|
# If you set this to False, Django will make some optimizations so as not
|
|
|
|
# to load the internationalization machinery.
|
|
|
|
USE_I18N = True
|
|
|
|
|
2007-11-19 13:59:58 +08:00
|
|
|
LOCALE_PATHS = ()
|
|
|
|
|
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
|
|
|
|
Merged Unicode branch into trunk (r4952:5608). This should be fully
backwards compatible for all practical purposes.
Fixed #2391, #2489, #2996, #3322, #3344, #3370, #3406, #3432, #3454, #3492, #3582, #3690, #3878, #3891, #3937, #4039, #4141, #4227, #4286, #4291, #4300, #4452, #4702
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5609 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-07-04 20:11:04 +08:00
|
|
|
# Encoding of files read from disk (template and initial SQL files).
|
|
|
|
FILE_CHARSET = 'utf-8'
|
|
|
|
|
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.
|
2007-02-27 08:02:40 +08:00
|
|
|
DATABASE_ENGINE = '' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'ado_mssql'.
|
2005-10-15 09:37:16 +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.
|
|
|
|
DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3.
|
2006-11-08 03:07:27 +08:00
|
|
|
DATABASE_OPTIONS = {} # Set to empty dictionary for default.
|
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'
|
|
|
|
|
2006-04-11 11:23:03 +08:00
|
|
|
# Port for sending e-mail.
|
|
|
|
EMAIL_PORT = 25
|
|
|
|
|
2006-03-23 03:47:15 +08:00
|
|
|
# Optional SMTP authentication information for EMAIL_HOST.
|
|
|
|
EMAIL_HOST_USER = ''
|
|
|
|
EMAIL_HOST_PASSWORD = ''
|
2007-05-03 21:35:02 +08:00
|
|
|
EMAIL_USE_TLS = False
|
2006-03-23 03:47:15 +08:00
|
|
|
|
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-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 = (
|
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-15 06:22:12 +08:00
|
|
|
)
|
|
|
|
|
2006-05-02 09:31:56 +08:00
|
|
|
# List of processors used by RequestContext to populate the context.
|
2005-12-24 12:39:59 +08:00
|
|
|
# Each one should be a callable that takes the request object as its
|
|
|
|
# only parameter and returns a dictionary to add to the context.
|
|
|
|
TEMPLATE_CONTEXT_PROCESSORS = (
|
|
|
|
'django.core.context_processors.auth',
|
|
|
|
'django.core.context_processors.debug',
|
|
|
|
'django.core.context_processors.i18n',
|
2007-05-29 19:09:24 +08:00
|
|
|
'django.core.context_processors.media',
|
2006-01-27 23:55:04 +08:00
|
|
|
# 'django.core.context_processors.request',
|
2005-12-24 12:39:59 +08:00
|
|
|
)
|
|
|
|
|
2006-02-09 08:31:51 +08:00
|
|
|
# Output to use in template system for invalid (e.g. misspelled) variables.
|
|
|
|
TEMPLATE_STRING_IF_INVALID = ''
|
|
|
|
|
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'
|
|
|
|
|
2006-06-02 12:20:32 +08:00
|
|
|
# Default formatting for date objects when only the year and month are relevant.
|
|
|
|
# See all available format strings here:
|
|
|
|
# http://www.djangoproject.com/documentation/templates/#now
|
|
|
|
YEAR_MONTH_FORMAT = 'F Y'
|
|
|
|
|
|
|
|
# Default formatting for date objects when only the month and day are relevant.
|
|
|
|
# See all available format strings here:
|
|
|
|
# http://www.djangoproject.com/documentation/templates/#now
|
|
|
|
MONTH_DAY_FORMAT = 'F j'
|
|
|
|
|
2006-05-02 09:31:56 +08:00
|
|
|
# Do you want to manage transactions manually?
|
|
|
|
# Hint: you really don't!
|
|
|
|
TRANSACTIONS_MANAGED = False
|
|
|
|
|
2006-11-07 10:20:08 +08:00
|
|
|
# The User-Agent string to use when checking for URL validity through the
|
|
|
|
# isExistingURL validator.
|
2007-06-10 10:00:46 +08:00
|
|
|
from django import get_version
|
|
|
|
URL_VALIDATOR_USER_AGENT = "Django/%s (http://www.djangoproject.com)" % get_version()
|
2006-11-07 10:20:08 +08:00
|
|
|
|
2007-12-02 03:23:49 +08:00
|
|
|
# The tablespaces to use for each model when not specified otherwise.
|
|
|
|
DEFAULT_TABLESPACE = ''
|
|
|
|
DEFAULT_INDEX_TABLESPACE = ''
|
|
|
|
|
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 = (
|
2006-05-26 12:05:02 +08:00
|
|
|
'django.contrib.sessions.middleware.SessionMiddleware',
|
|
|
|
'django.contrib.auth.middleware.AuthenticationMiddleware',
|
|
|
|
# 'django.middleware.http.ConditionalGetMiddleware',
|
|
|
|
# 'django.middleware.gzip.GZipMiddleware',
|
|
|
|
'django.middleware.common.CommonMiddleware',
|
|
|
|
'django.middleware.doc.XViewMiddleware',
|
2005-07-13 09:25:57 +08:00
|
|
|
)
|
|
|
|
|
2005-08-17 06:54:05 +08:00
|
|
|
############
|
|
|
|
# SESSIONS #
|
|
|
|
############
|
|
|
|
|
2007-09-16 05:29:14 +08:00
|
|
|
SESSION_COOKIE_NAME = 'sessionid' # 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.
|
|
|
|
SESSION_COOKIE_SECURE = False # Whether the session cookie should be secure (https:// only).
|
2007-10-20 13:13:56 +08:00
|
|
|
SESSION_COOKIE_PATH = '/' # The path of the session cookie.
|
2007-09-16 05:29:14 +08:00
|
|
|
SESSION_SAVE_EVERY_REQUEST = False # Whether to save the session data on every request.
|
|
|
|
SESSION_EXPIRE_AT_BROWSER_CLOSE = False # Whether sessions expire when a user closes his browser.
|
|
|
|
SESSION_ENGINE = 'django.contrib.sessions.backends.db' # The module to store session data
|
|
|
|
SESSION_FILE_PATH = '/tmp/' # Directory to store session files if using the file session module
|
2005-08-17 06:54:05 +08:00
|
|
|
|
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 = ''
|
2007-07-05 19:08:40 +08:00
|
|
|
CACHE_MIDDLEWARE_SECONDS = 600
|
2005-07-13 09:25:57 +08:00
|
|
|
|
|
|
|
####################
|
|
|
|
# COMMENTS #
|
|
|
|
####################
|
|
|
|
|
|
|
|
COMMENTS_ALLOW_PROFANITIES = False
|
|
|
|
|
2006-09-22 10:48:19 +08:00
|
|
|
# The profanities that will trigger a validation error in the
|
2006-09-26 01:38:35 +08:00
|
|
|
# 'hasNoProfanities' validator. All of these should be in lowercase.
|
|
|
|
PROFANITIES_LIST = ('asshat', 'asshead', 'asshole', 'cunt', 'fuck', 'gook', 'nigger', 'shit')
|
2006-09-22 10:48:19 +08:00
|
|
|
|
2005-07-13 09:25:57 +08:00
|
|
|
# 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 = ()
|
2006-06-29 00:37:02 +08:00
|
|
|
|
|
|
|
##################
|
|
|
|
# AUTHENTICATION #
|
|
|
|
##################
|
|
|
|
|
|
|
|
AUTHENTICATION_BACKENDS = ('django.contrib.auth.backends.ModelBackend',)
|
2006-08-27 20:46:39 +08:00
|
|
|
|
2007-04-25 16:49:57 +08:00
|
|
|
LOGIN_URL = '/accounts/login/'
|
|
|
|
|
|
|
|
LOGOUT_URL = '/accounts/logout/'
|
|
|
|
|
|
|
|
LOGIN_REDIRECT_URL = '/accounts/profile/'
|
|
|
|
|
2006-08-27 20:46:39 +08:00
|
|
|
###########
|
|
|
|
# TESTING #
|
|
|
|
###########
|
|
|
|
|
2006-09-01 21:33:26 +08:00
|
|
|
# The name of the method to use to invoke the test suite
|
|
|
|
TEST_RUNNER = 'django.test.simple.run_tests'
|
|
|
|
|
|
|
|
# The name of the database to use for testing purposes.
|
|
|
|
# If None, a name of 'test_' + DATABASE_NAME will be assumed
|
|
|
|
TEST_DATABASE_NAME = None
|
2007-03-01 21:11:08 +08:00
|
|
|
|
2007-05-29 20:42:08 +08:00
|
|
|
# Strings used to set the character set and collation order for the test
|
|
|
|
# database. These values are passed literally to the server, so they are
|
|
|
|
# backend-dependent. If None, no special settings are sent (system defaults are
|
|
|
|
# used).
|
|
|
|
TEST_DATABASE_CHARSET = None
|
|
|
|
TEST_DATABASE_COLLATION = None
|
|
|
|
|
2007-03-01 21:11:08 +08:00
|
|
|
############
|
|
|
|
# FIXTURES #
|
|
|
|
############
|
|
|
|
|
|
|
|
# The list of directories to search for fixtures
|
|
|
|
FIXTURE_DIRS = ()
|