Changes between Version 7 and Version 8 of CookBookIPAccessMiddleware
- Timestamp:
- Dec 21, 2006, 6:09:44 PM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CookBookIPAccessMiddleware
v7 v8 34 34 == IPAccess Middleware == 35 35 36 Middleware mission is authenticate automatically with an user defined in models, '''only if''' the remote ip address exists in ''IPAccess'' table.36 Middleware mission is authenticate automatically with an user defined in models, '''only if''' the browser remote ip address exists in ''IPAccess'' table. 37 37 38 38 This is the code (in file ''myproj/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 !''AuthenticationMiddleware''.60 The middleware installation requires you insert ''IPAccessMiddleware'' into ''MIDDLEWARE_CLASSES''. Obviusly, it also requires the installation of ''!AuthenticationMiddleware''. 61 61 62 62 The code would be like that: