#NEWLINE# @ classmethod #NEWLINE# def _get_storage_path( cls ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# return cls . _storage_path #NEWLINE# #UNINDENT# except AttributeError : #NEWLINE# #INDENT# storage_path = getattr ( settings , 'SESSION_FILE_PATH' , None ) #NEWLINE# if ( not storage_path ) : #NEWLINE# #INDENT# storage_path = tempfile . gettempdir ( ) #NEWLINE# #UNINDENT# if ( not os . path . isdir ( storage_path ) ) : #NEWLINE# #INDENT# raise ImproperlyConfigured ( ( "The session storage path %r doesn't exist. Please set your SESSION_FILE_PATH setting to an existing directory in which Django can store session data." % storage_path ) ) #NEWLINE# #UNINDENT# cls . _storage_path = storage_path #NEWLINE# return storage_path