mirror of
https://github.com/django/django.git
synced 2025-06-05 11:39:13 +00:00
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::
|
An API is available to manipulate session data outside of a view::
|
||||||
|
|
||||||
>>> from django.contrib.sessions.backends.db import SessionStore
|
>>> from django.contrib.sessions.backends.db import SessionStore
|
||||||
>>> import datetime
|
|
||||||
>>> s = SessionStore()
|
>>> s = SessionStore()
|
||||||
>>> # stored as seconds since epoch since datetimes are not serializable in JSON.
|
>>> # stored as seconds since epoch since datetimes are not serializable in JSON.
|
||||||
>>> s['last_login'] = 1376587691
|
>>> s['last_login'] = 1376587691
|
||||||
|
Loading…
x
Reference in New Issue
Block a user