mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Fixed #13200 -- Updated the DB session backend to make full use of routers, deprecating the need for the SESSION_DB_ALIAS setting. Thanks to rokclimb15 for the report.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12844 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
c62c47e638
commit
962defed0a
3 changed files with 5 additions and 24 deletions
|
@ -44,16 +44,9 @@ Using database-backed sessions
|
|||
If you want to use a database-backed session, you need to add
|
||||
``'django.contrib.sessions'`` to your ``INSTALLED_APPS`` setting.
|
||||
|
||||
If you want to store your session data on a database other than ``default``
|
||||
alias, you should set the :setting:`SESSION_DB_ALIAS` setting.
|
||||
|
||||
Once you have configured your installation, run ``manage.py syncdb``
|
||||
to install the single database table that stores session data.
|
||||
|
||||
.. versionadded:: 1.2
|
||||
The :setting:`SESSION_DB_ALIAS` setting was added in Django 1.2. It
|
||||
is not required in earlier versions.
|
||||
|
||||
Using cached sessions
|
||||
---------------------
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue