Changeset 6890
- Timestamp:
- 12/04/07 14:29:43 (10 months ago)
- Files:
-
- django/trunk/django/contrib/sessions/tests.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/contrib/sessions/tests.py
r6831 r6890 1 1 r""" 2 2 3 >>> from django.conf import settings 3 4 >>> from django.contrib.sessions.backends.db import SessionStore as DatabaseSession 4 5 >>> from django.contrib.sessions.backends.cache import SessionStore as CacheSession … … 39 40 >>> file_session.exists(file_session.session_key) 40 41 False 42 43 # Make sure the file backend checks for a good storage dir 44 >>> settings.SESSION_FILE_PATH = "/if/this/directory/exists/you/have/a/weird/computer" 45 >>> FileSession() 46 Traceback (innermost last): 47 ... 48 ImproperlyConfigured: The session storage path '/if/this/directory/exists/you/have/a/weird/computer' doesn't exist. Please set your SESSION_FILE_PATH setting to an existing directory in which Django can store session data. 41 49 42 50 >>> cache_session = CacheSession()
