summaryrefslogtreecommitdiff
path: root/docs/sessions.txt
diff options
context:
space:
mode:
authorJoseph Kocherhans <joseph@jkocherhans.com>2007-09-25 00:08:38 +0000
committerJoseph Kocherhans <joseph@jkocherhans.com>2007-09-25 00:08:38 +0000
commit609eaf130d2d9eac109aefa59bfced32b67b9eb1 (patch)
treeb8bf4fd18c0fe75a418525baefa485c5ce31ce2f /docs/sessions.txt
parentafb8f0a61969dff6450cd296be5eac2a5693ecd9 (diff)
newforms-admin: Merged to [6416]
git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@6417 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/sessions.txt')
-rw-r--r--docs/sessions.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/sessions.txt b/docs/sessions.txt
index ab7ea56aaa..96e8d36854 100644
--- a/docs/sessions.txt
+++ b/docs/sessions.txt
@@ -198,14 +198,14 @@ Using sessions out of views
An API is available to manipulate session data outside of a view::
- >>> from django.contrib.sessions.engines.db import SessionStore
+ >>> from django.contrib.sessions.backends.db import SessionStore
>>> s = SessionStore(session_key='2b1189a188b44ad18c35e113ac6ceead')
>>> s['last_login'] = datetime.datetime(2005, 8, 20, 13, 35, 10)
>>> s['last_login']
datetime.datetime(2005, 8, 20, 13, 35, 0)
>>> s.save()
-If you're using the ``django.contrib.sessions.engine.db`` backend, each
+If you're using the ``django.contrib.sessions.backends.db`` backend, each
session is just a normal Django model. The ``Session`` model is defined in
``django/contrib/sessions/models.py``. Because it's a normal model, you can
access sessions using the normal Django database API::