mirror of https://github.com/django/django.git
Removed unused import in docs/topics/http/sessions.txt
This commit is contained in:
parent
18185724e6
commit
f0fc1690b4
|
@ -497,7 +497,6 @@ Using sessions out of views
|
|||
An API is available to manipulate session data outside of a view::
|
||||
|
||||
>>> from django.contrib.sessions.backends.db import SessionStore
|
||||
>>> import datetime
|
||||
>>> s = SessionStore()
|
||||
>>> # stored as seconds since epoch since datetimes are not serializable in JSON.
|
||||
>>> s['last_login'] = 1376587691
|
||||
|
|
Loading…
Reference in New Issue