This worked great, however shouldn't there be some uniformity in how the Login_Required argument is applied in all the generic views? This was not the most obvious solution, and I did not see it anywhere in the documentation.
On Dec 26, 5:15 pm, Collin Grady <[EMAIL PROTECTED]> wrote: > kevinski said the following: > > > That is most definitely the smartest way to do it, however we are > > still stuck on Python 2.3 at my work. I suppose I may need to rely on > > my hack until the powers that be see fit to upgrade to 2.5 or 3.0 or > > whatever. > > That changes nothing except the syntax used. > > However, with svn, you can inline the login_required right in urls.py; > > from django.views.generic import simple > #... > (r'^foo/$', login_required(simple.direct_to_template), info_dict), > > -- > Collin Grady > > Hearts will never be practical until they can be made unbreakable. > -- The Wizard of Oz --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-developers?hl=en -~----------~----~----~----~------~----~------~--~---
