Changes between Version 11 and Version 12 of CookBookIPAccessMiddleware
- Timestamp:
- Dec 22, 2006, 5:37:33 AM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CookBookIPAccessMiddleware
v11 v12 7 7 == IPAccess Model == 8 8 9 You must define a model that allows definingtuples of type (IP addr, user): IP of the client computer with the web browser, user to be authenticated.9 You must define a model that allows to specify tuples of type (IP addr, user): IP of the client computer with the web browser, user to be authenticated. 10 10 11 11 This is the proposed model (suppose ''myproj/myapp/models.py''): … … 69 69 'django.contrib.auth.middleware.AuthenticationMiddleware', 70 70 'django.middleware.doc.XViewMiddleware', 71 ' yourproject.apps.news.middleware.IPAccessMiddleware',71 'myproj.apps.myapp.middleware.IPAccessMiddleware', 72 72 ) 73 73 … … 87 87 'django.contrib.comments', 88 88 'django.contrib.admin', 89 ' yourproject.apps.yourapp',90 ' yourproject.apps.ipaccess',89 'myproj.apps.myapp', 90 'myproj.apps.ipaccess', 91 91 ) 92 92