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,
> > 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
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
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
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...
>
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 "
6 matches
Mail list logo