users
Subject: Re: admin_perm_test decorator?
On Jan 28, 7:49 pm, Ian Cullinan wrote:
> The docs
> athttp://docs.djangoproject.com/en/dev/ref/contrib/admin/#protecting-cu...say
> to use the "decorator provided in django.contrib.admin.utils.admin_perm_test"
> to protect cust
least):
$ pwd
/usr/lib/python2.5/site-packages/django/contrib/admin
$ grep -R admin_perm_test *
$
So what's the correct way to do this?
Cheers,
Ian Cullinan
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
&quo
To: django-users@googlegroups.com
Subject: RE: reverse() problems (NoReverseMatch)
On Fri, 2009-01-16 at 14:02 +1100, Ian Cullinan wrote:
> Thanks for the explanation, but I still don't understand why it
> doesn't work with function references.
>
> For one,
> http://docs.django
Thanks for the explanation, but I still don't understand why it doesn't work
with function references.
For one, http://docs.djangoproject.com/en/dev/topics/http/urls/#reverse says
"viewname is either the function name (either a function reference, or the
string version of the name, if you used
pics/http/urls/#reverse seems to imply
that it should work either way. Is this a bug?
Cheers,
Ian Cullinan
-Original Message-
From: django-users@googlegroups.com [mailto:django-us...@googlegroups.com] On
Behalf Of Ian Cullinan
Sent: Friday, 16 January 2009 10:57 AM
To: django-users@goo
face-search'),
)
from django.core.urlresolvers import reverse
reverse('face-search')
Dj Gilcrease
OpenRPG Developer
~~http://www.openrpg.com
On Thu, Jan 15, 2009 at 5:13 PM, Ian Cullinan wrote:
>
> def start_search(request):
>if request.method == 'POST'
s@googlegroups.com
Subject: Re: reverse() problems (NoReverseMatch)
whats your start_search function look like
Dj Gilcrease
OpenRPG Developer
~~http://www.openrpg.com
On Thu, Jan 15, 2009 at 5:00 PM, Ian Cullinan wrote:
> I'm trying to use django.core.urlresolvers.reverse in the ur
kages/django/core/urlresolvers.py", line
243, in reverse
"arguments '%s' not found." % (lookup_view, args, kwargs))
NoReverseMatch: Reverse for '' with
arguments '()' and keyword arguments '{}' not found.
Passi
8 matches
Mail list logo