Changes between Version 2 and Version 3 of CookBookIPAccessMiddleware
- Timestamp:
- Dec 21, 2006, 6:00:49 PM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CookBookIPAccessMiddleware
v2 v3 34 34 == IPAccess Middleware == 35 35 36 The middleware mission is authenticate automatically with an user defined in models, ''' if''' the remote ip address exists in IPAccess table.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 38 This is the code (in file ''myapp.middleware.py''): … … 58 58 == Settings == 59 59 60 The middleware installation requires you insert ''IPAccessMiddleware'' into ''MIDDLEWARE_CLASSES''. Obviusly, it also requires the installation of ''AutenticationMiddleware''.60 The middleware installation requires you insert ''IPAccessMiddleware'' into ''MIDDLEWARE_CLASSES''. Obviusly, it also requires the installation of !''AutenticationMiddleware''. 61 61 62 62 The code would be like that: