On Apr 16, 4:25 pm, Col Wilson <col.wilson.em...@googlemail.com> wrote: > I'm using generic views to render my pages > (django.views.generic.date_based, django.views.generic.list_detail > etc) and they're very handy. > > However, the app I'm trying to build would like a security and on > reading the "User Authentication in Django" document, it just talks > about adding authentication to the views. > > Generic views of course are buried in the django installation > directories and you don't want to go messing about in there, so it's > not obvious to me how I can do that. > > Can someone give me a hand please?
The basic way to do this is to write a simple view which is just a short wrapper around a generic view, but which takes authentication. James Bennett has a good post on this: http://www.b-list.org/weblog/2006/nov/16/django-tips-get-most-out-generic-views/ -- DR. --~--~---------~--~----~------------~-------~--~----~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---