mirror of
https://github.com/django/django.git
synced 2025-10-26 15:16:09 +00:00
Fixed #1 -- Added anonymous session support via middleware and request.session. Removed the former request.session, which wasn't being used anyway. Removed auth.Session model. See the BackwardsIncompatibleChanges wiki page for IMPORTANT notes on code you'll have to change and a DB table you'll have to create.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@518 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -48,9 +48,6 @@ DATABASE_HOST = '' # Set to empty string for localhost
|
||||
# Host for sending e-mail.
|
||||
EMAIL_HOST = 'localhost'
|
||||
|
||||
# Name of the session cookie. This can be whatever you want.
|
||||
AUTH_SESSION_COOKIE = 'rizzo'
|
||||
|
||||
# List of locations of the template source files, in search order.
|
||||
TEMPLATE_DIRS = ()
|
||||
|
||||
@@ -113,6 +110,14 @@ MIDDLEWARE_CLASSES = (
|
||||
"django.middleware.doc.XViewMiddleware",
|
||||
)
|
||||
|
||||
############
|
||||
# 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.
|
||||
|
||||
#########
|
||||
# CACHE #
|
||||
#########
|
||||
@@ -121,9 +126,6 @@ MIDDLEWARE_CLASSES = (
|
||||
# possible values.
|
||||
CACHE_BACKEND = 'simple://'
|
||||
|
||||
# Set to a string like ".lawrence.com", or None for a standard domain cookie.
|
||||
REGISTRATION_COOKIE_DOMAIN = None
|
||||
|
||||
####################
|
||||
# COMMENTS #
|
||||
####################
|
||||
|
||||
Reference in New Issue
Block a user