Changes between Version 3 and Version 4 of CookBookIPAccessMiddleware


Ignore:
Timestamp:
Dec 21, 2006, 6:01:27 PM (17 years ago)
Author:
Manuel Saelices <msaelices@…>
Comment:

Tipo fixed

Legend:

Unmodified
Added
Removed
Modified
  • CookBookIPAccessMiddleware

    v3 v4  
    99You must define a model that permits defining a tuple (ip addr, user): ip from browser that connect, and users that authenticated.
    1010
    11 This is the model proposed (it would be in a file like ''myapp.models.py''):
     11This is the model proposed (it would be in a file like ''myapp/models.py''):
    1212
    1313{{{
     
    3636The middleware mission is authenticate automatically with an user defined in models, '''only if''' the remote ip address exists in IPAccess table.
    3737
    38 This is the code (in file ''myapp.middleware.py''):
     38This is the code (in file ''myapp/middleware.py''):
    3939
    4040{{{
Back to Top