Yeah, I've used the caching decorators in my URLConf for generic views that way. I think it's good to support both ways and I don't think either is going away, but someone more familiar with development should probably comment on that.
Sean. On 7/10/07, James Bennett <[EMAIL PROTECTED]> wrote: > > > On 7/10/07, Sean Patrick Hogan <[EMAIL PROTECTED]> wrote: > > The "pythonic" way is a new addition to Django if I'm not mistaken. > > Yes, it was added between the 0.95 and 0.96 releases. > > > I personally prefer calling by string because (I'm assuming here) it > doesn't > > load the function unless it needs to. > > On the other hand, importing the functions and using them directly > opens up some interesting possibilities -- you can apply decorators > like 'login_required' to them right there in the URLConf, which adds > another layer of configurability that isn't possible when referencing > them as strings. > > > -- > "Bureaucrat Conrad, you are technically correct -- the best kind of > correct." > > > > -- www.PovertyFighters.com If you knew you could fight hunger and poverty, conserve the environment, empower women, combat AIDS, improve labor standards and win a national competition for your university--all with only two clicks a day--would you do it? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@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-developers?hl=en -~----------~----~----~----~------~----~------~--~---