TemplateSyntaxError: Caught NoReverseMatch while rendering: Reverse for 'imperavi-upload-image' with arguments '()' and keyword arguments '{'upload_path': 'imperavi/'}' not found. #40

Closed
SubramanyamV opened this Issue Dec 5, 2012 · 3 comments

Projects

None yet

2 participants

Hi

Created a new project and then a new app for the same with no extra code at all except the app for the news

Thanks
Subramanyam

django.template.base.TemplateSyntaxError

TemplateSyntaxError: Caught NoReverseMatch while rendering: Reverse for 'imperavi-upload-image' with arguments '()' and keyword arguments '{'upload_path': 'imperavi/'}' not found.
Traceback (most recent call last)

This is the Copy/Paste friendly version of the traceback. You can also paste this traceback into the public lodgeit pastebin:

Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/django/contrib/staticfiles/handlers.py", line 68, in call
return self.application(environ, start_response)
File "/usr/local/lib/python2.7/dist-packages/django/contrib/staticfiles/handlers.py", line 68, in call
return self.application(environ, start_response)
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/wsgi.py", line 272, in call
response = self.get_response(request)
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 169, in get_response
response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 203, in handle_uncaught_exception
return debug.technical_500_response(request, _exc_info)
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 111, in get_response
response = callback(request, *callback_args, *_callback_kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/contrib/admin/options.py", line 307, in wrapper
return self.admin_site.admin_view(view)(_args, *_kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/utils/decorators.py", line 93, in _wrapped_view
response = view_func(request, _args, *_kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/views/decorators/cache.py", line 79, in _wrapped_view_func
response = view_func(request, _args, *_kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/contrib/admin/sites.py", line 197, in inner
return view(request, _args, *_kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/utils/decorators.py", line 28, in _wrapper
return bound_func(_args, *_kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/utils/decorators.py", line 93, in _wrapped_view
response = view_func(request, _args, *_kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/utils/decorators.py", line 24, in bound_func
return func(self, _args2, *_kwargs2)
File "/usr/local/lib/python2.7/dist-packages/django/db/transaction.py", line 217, in inner
res = func(_args, *_kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/contrib/admin/options.py", line 938, in add_view
return self.render_change_form(request, context, form_url=form_url, add=True)
File "/usr/local/lib/python2.7/dist-packages/django/contrib/admin/options.py", line 708, in render_change_form
], context, context_instance=context_instance)
File "/usr/local/lib/python2.7/dist-packages/django/shortcuts/init.py", line 20, in render_to_response
return HttpResponse(loader.render_to_string(_args, *_kwargs), *_httpresponse_kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/template/loader.py", line 188, in render_to_string
return t.render(context_instance)
File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 123, in render
return self._render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 117, in _render
return self.nodelist.render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 744, in render
bits.append(self.render_node(node, context))
File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py", line 73, in render_node
result = node.render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py", line 127, in render
return compiled_parent._render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 117, in _render
return self.nodelist.render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 744, in render
bits.append(self.render_node(node, context))
File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py", line 73, in render_node
result = node.render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py", line 127, in render
return compiled_parent._render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 117, in _render
return self.nodelist.render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 744, in render
bits.append(self.render_node(node, context))
File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py", line 73, in render_node
result = node.render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py", line 127, in render
return compiled_parent._render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 117, in _render
return self.nodelist.render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 744, in render
bits.append(self.render_node(node, context))
File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py", line 73, in render_node
result = node.render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py", line 64, in render
result = block.nodelist.render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 744, in render
bits.append(self.render_node(node, context))
File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py", line 73, in render_node
result = node.render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/defaulttags.py", line 227, in render
nodelist.append(node.render(context))
File "/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py", line 170, in render
return self.render_template(template, context)
File "/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py", line 141, in render_template
output = template.render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 123, in render
return self._render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 117, in _render
return self.nodelist.render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 744, in render
bits.append(self.render_node(node, context))
File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py", line 73, in render_node
result = node.render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/defaulttags.py", line 227, in render
nodelist.append(node.render(context))
File "/usr/local/lib/python2.7/dist-packages/django/template/defaulttags.py", line 227, in render
nodelist.append(node.render(context))
File "/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py", line 159, in render
return self.render_template(self.template, context)
File "/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py", line 141, in render_template
output = template.render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 123, in render
return self._render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 117, in _render
return self.nodelist.render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 744, in render
bits.append(self.render_node(node, context))
File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py", line 73, in render_node
result = node.render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/defaulttags.py", line 227, in render
nodelist.append(node.render(context))
File "/usr/local/lib/python2.7/dist-packages/django/template/defaulttags.py", line 227, in render
nodelist.append(node.render(context))
File "/usr/local/lib/python2.7/dist-packages/django/template/defaulttags.py", line 313, in render
return self.nodelist_false.render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 744, in render
bits.append(self.render_node(node, context))
File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py", line 73, in render_node
result = node.render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/defaulttags.py", line 313, in render
return self.nodelist_false.render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/base.py", line 744, in render
bits.append(self.render_node(node, context))
File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py", line 73, in render_node
result = node.render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py", line 92, in render
output = force_unicode(output)
File "/usr/local/lib/python2.7/dist-packages/django/utils/encoding.py", line 71, in force_unicode
s = unicode(s)
File "/usr/local/lib/python2.7/dist-packages/django/forms/forms.py", line 408, in unicode
return self.as_widget()
File "/usr/local/lib/python2.7/dist-packages/django/forms/forms.py", line 439, in as_widget
return widget.render(name, self.value(), attrs=attrs)
File "/usr/local/lib/python2.7/dist-packages/imperavi/widget.py", line 29, in render
'imageUpload': reverse('imperavi-upload-image', kwargs={'upload_path': self.upload_path}),
File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py", line 391, in reverse
*args, *_kwargs)))
File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py", line 337, in reverse
"arguments '%s' not found." % (lookup_view_s, args, kwargs))
TemplateSyntaxError: Caught NoReverseMatch while rendering: Reverse for 'imperavi-upload-image' with arguments '()' and keyword arguments '{'upload_path': 'imperavi/'}' not found.

The debugger caught an exception in your WSGI application. You can now look at the traceback which led to the error.

To switch between the interactive traceback and the plaintext one, you can click on the "Traceback" headline. From the text traceback you can also create a paste of it. For code execution mouse-over the frame you want to debug and click on the console icon on the right side.

You can execute arbitrary Python code in the stack frames and there are some extra helpers available for introspection:

dump() shows all variables in the frame
dump(obj) dumps all that's known about the object

Brought to you by DON'T PANIC, your friendly Werkzeug powered traceback interpreter.

2.) Last frame

dump()
Local variables in frame
self <RegexURLResolver newss.urls (None:None) ^/>
args ()
m None
lookup_view_s 'imperavi-upload-image'
n None
possibilities []
lookup_view 'imperavi-upload-image'
kwargs {'upload_path': 'imperavi/'}

Owner

Heya,

Thanks for the feedback!

Did you follow step 3 in django-imperavi's installation instructions?

https://github.com/vasyabigi/django-imperavi

Hi

I installed django-imperavi and still have the same issue

Too keep you posted I did the following

In imperavi/urls.py

modified
#from django.conf.urls import patterns, url

to
from django.conf.urls.defaults import patterns, url

Now it seems to be working ( will confirm again )

Also added in my main urls

url(r'^imperavi/', include('imperavi.urls')),

btw I am using django 1.3 version

Thanks
Subramanyam

@dokterbob dokterbob closed this in 9bdc442 Dec 11, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment