mirror of
				https://github.com/django/django.git
				synced 2025-11-04 05:35:37 +00:00 
			
		
		
		
	Removed unused import in docs/topics/http/sessions.txt
This commit is contained in:
		
							parent
							
								
									18185724e6
								
							
						
					
					
						commit
						f0fc1690b4
					
				
					 1 changed files with 0 additions and 1 deletions
				
			
		| 
						 | 
					@ -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…
	
	Add table
		Add a link
		
	
		Reference in a new issue