kezzine / django-genericadmin

Automatically exported from code.google.com/p/django-genericadmin
0 stars 0 forks source link

django.template.TemplateSyntaxError #6

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I've just installed genericadmin following
http://code.google.com/p/django-genericadmin/wiki/Install

When I go to /admin I get:
django.template.TemplateSyntaxError
TemplateSyntaxError: Caught an exception while rendering: Reverse for
'apictools.admin_genericadmin_obj_lookup' with arguments '()' and keyword
arguments '{}' not found. Original Traceback (most recent call last): File
"/usr/local/lib/python2.6/dist-packages/django/template/debug.py", line 71,
in render_node result = node.render(context) File
"/usr/local/lib/python2.6/dist-packages/django/template/defaulttags.py",
line 377, in render args=args, kwargs=kwargs) File
"/usr/local/lib/python2.6/dist-packages/django/core/urlresolvers.py", line
265, in reverse *args, **kwargs))) File
"/usr/local/lib/python2.6/dist-packages/django/core/urlresolvers.py", line
254, in reverse "arguments '%s' not found." % (lookup_view, args, kwargs))
NoReverseMatch: Reverse for 'apictools.admin_genericadmin_obj_lookup' with
arguments '()' and keyword arguments '{}' not found.

-- lm

Original issue reported on code.google.com by moril...@gmail.com on 20 Jun 2009 at 2:45

GoogleCodeExporter commented 9 years ago
I have the same problem, anyone knows how to fix this ?

Original comment by dsz...@gmail.com on 23 Jul 2009 at 11:17

GoogleCodeExporter commented 9 years ago
It's complaining because it can't resolve a reverse() to the named route 
admin_genericadmin_obj_lookup. You 
can do something about this by adding the following to your urls.py, just above 
the line that imports your 
main admin urls:

url(r'^admin/genericadmin/obj_lookup/$','genericadmin.views.generic_lookup', 
name="admin_genericadmin_obj_lookup"),

the actual URL path is arbitrary, as it's only called via a named route, but I 
made it as explicit as the named 
route, to avoid potential clashes.

(That fixed this issue for me - but let me to a jQuery issue where $ is 
undefined)

Original comment by steveja...@gmail.com on 12 Aug 2009 at 7:05

GoogleCodeExporter commented 9 years ago
Same problem

Original comment by antonio....@gmail.com on 20 Oct 2009 at 6:33