Hi Serg, (replying to the list)
On Thu, Nov 26, 2009 at 4:09 AM, serg <s...@nutshell.ru> wrote: > > hmm.. yes. it's almost the same i mean. > but, all middlewares calls for each request... It's bad (imho). > also in 99.99% cases it wil be work nice... > thanks! > > This method {'filter_ip':True} is unsafe. > > Look: > First developer defined MembersAreaAuthMiddleware > and create: > (r'^members/', include('members.urls'), {'auth':True}), > and second developer defined SmtpMiddleware > (r'^private/', include('public.private.urls'), {'auth':True}), > Conflict. > > If use params as names of handlers... And call them into one > middleware... Hmm.. It will be normal handlers :) > Sure, I didn't say it was perfect! Just one possible solution. I doubt the overhead of one extra function call for the middleware is going to make that big a difference... Rob :) -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-develop...@googlegroups.com. To unsubscribe from this group, send email to django-developers+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.