Changes between Version 3 and Version 4 of CookBookIPAccessMiddleware
- Timestamp:
- Dec 21, 2006, 6:01:27 PM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CookBookIPAccessMiddleware
v3 v4 9 9 You must define a model that permits defining a tuple (ip addr, user): ip from browser that connect, and users that authenticated. 10 10 11 This is the model proposed (it would be in a file like ''myapp .models.py''):11 This is the model proposed (it would be in a file like ''myapp/models.py''): 12 12 13 13 {{{ … … 36 36 The middleware mission is authenticate automatically with an user defined in models, '''only if''' the remote ip address exists in IPAccess table. 37 37 38 This is the code (in file ''myapp .middleware.py''):38 This is the code (in file ''myapp/middleware.py''): 39 39 40 40 {{{