Ticket #14093: trac#14093-cache-session.diff
File trac#14093-cache-session.diff, 631 bytes (added by , 12 years ago) |
---|
-
django/contrib/sessions/backends/cache.py
diff --git a/django/contrib/sessions/backends/cache.py b/django/contrib/sessions/backends/cache.py index b66123b..a28a2c9 100644
a b class SessionStore(SessionBase): 43 43 continue 44 44 self.modified = True 45 45 return 46 raise RuntimeError("Unable to create a new session key.") 46 raise RuntimeError( 47 "Unable to create a new session key. " 48 "It is likely that the cache is unavailable.") 47 49 48 50 def save(self, must_create=False): 49 51 if must_create: