Package expedient :: Package common :: Package middleware :: Module sitelockdown :: Class SiteLockDown
[hide private]
[frames] | no frames]

Class SiteLockDown

source code


This middleware class will force almost every request coming from Django to be authenticated, or it will redirect the user to a login page. Some urls can be excluded by specifying their regexes in the SITE_LOCKDOWN_EXCEPTIONS tuple in the settings.

Hints from: http://davyd.livejournal.com/262859.html

Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
process_request(self, request) source code

Inherited from utils.RegexMatcher: matches

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)