Code

Changes between Version 11 and Version 12 of CookBookIPAccessMiddleware


Ignore:
Timestamp:
12/22/06 03:37:33 (8 years ago)
Author:
anonymous
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CookBookIPAccessMiddleware

    v11 v12  
    77== IPAccess Model == 
    88 
    9 You must define a model that allows defining tuples of type (IP addr, user): IP of the client computer with the web browser, user to be authenticated. 
     9You 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. 
    1010 
    1111This is the proposed model (suppose  ''myproj/myapp/models.py''): 
     
    6969    'django.contrib.auth.middleware.AuthenticationMiddleware', 
    7070    'django.middleware.doc.XViewMiddleware', 
    71     'yourproject.apps.news.middleware.IPAccessMiddleware', 
     71    'myproj.apps.myapp.middleware.IPAccessMiddleware', 
    7272) 
    7373 
     
    8787    'django.contrib.comments', 
    8888    'django.contrib.admin', 
    89     'yourproject.apps.yourapp', 
    90     'yourproject.apps.ipaccess', 
     89    'myproj.apps.myapp', 
     90    'myproj.apps.ipaccess', 
    9191) 
    9292