Fixed #5544 -- Fixed typo in documentation, introduced as a result of the changes in [6333] and [6365]. Thanks for the report, xiaolianyi@gmail.com.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6377 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
5c55cc83a7
commit
d022e2581d
|
@ -198,7 +198,7 @@ Using sessions out of views
|
||||||
|
|
||||||
An API is available to manipulate session data outside of a view::
|
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 = 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, 10)
|
||||||
>>> s['last_login']
|
>>> s['last_login']
|
||||||
|
|
Loading…
Reference in New Issue