On Sep 7, 2006, at 16:58, James Bennett wrote:
> > On 9/7/06, Håkan Johansson <[EMAIL PROTECTED]> wrote: >> How do I do this the "right" way in Django? > > For some basic ideas you might want to look at the 'INTERNAL_IPS' > setting; the biggest use Django makes of it is in enabling or > disabling the various admin bookmarklets, but it would be a fairly > easy mechanism to extend, say, by writing a decorator (in the style of > the 'login_required' or 'admin_required' decorators) which checks > whether the user's IP address is in the INTERNAL_IPS list and either > returns the view or doesn't based on that. That sounds like a marvelous idea. Thanks for your help. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---