Re: How to resolve the view name from a url

2009-11-25 Thread Bill Freeman
Note that url pattern's aren't required to have names, so you can't capture statistics on unnamed urls patterns in apps that you want to use unmodified. If, on the other hand, you just want to collect statistics on url patters which are "under your control", and thus can be required to have names,

Re: How to resolve the view name from a url

2009-11-24 Thread greatlemer
> > No, I don't. > > > I want to know the name of the url for a given url pattern. So, when I > > get in my method the url someone is asking for (next='/people/'), I > > want to know the name of the url that identifies this pattern > > (people_name). It's not for a HttpRedirect, it's for statistica

Re: How to resolve the view name from a url

2009-11-24 Thread rebus_
2009/11/24 bcurtu : > No, I don't. > > I want to know the name of the url for a given url pattern. So, when I > get in my method the url someone is asking for (next='/people/'), I > want to know the name of the url that identifies this pattern > (people_name). It's not for a HttpRedirect, it's for

Re: How to resolve the view name from a url

2009-11-24 Thread bcurtu
No, I don't. I want to know the name of the url for a given url pattern. So, when I get in my method the url someone is asking for (next='/people/'), I want to know the name of the url that identifies this pattern (people_name). It's not for a HttpRedirect, it's for statistical porpouses. It's so

Re: How to resolve the view name from a url

2009-11-24 Thread rebus_
2009/11/24 bcurtu : > Hi, > > I want to get the url name from a url. For example, having: > >    url( >        regex   = r'^people/$', >        view    = 'people_view', >        name    = 'people_name' >        ), > > and > > @login_required > def people_view(request)... >     _some_code_here... >

How to resolve the view name from a url

2009-11-24 Thread bcurtu
Hi, I want to get the url name from a url. For example, having: url( regex = r'^people/$', view= 'people_view', name= 'people_name' ), and @login_required def people_view(request)... _some_code_here... I'm looking for a function that accepts "