Production django server : NoReverseMatch: Reverse for 'login' with arguments '()' and keyword arguments '{}' not found.

88 views
Skip to first unread message

董健

unread,
Apr 19, 2014, 7:25:04 AM4/19/14
to django...@googlegroups.com
i got NoReverseMatch when deloy cartridge to the webfaction.  i can not not figure out what happened. the problem annoyed me for two days. any help will be precious. 

below it is the whole debug information.


 mod_wsgi (pid=4764): Exception occurred processing WSGI script '/home/victoria88/webapps/cartridge/cartridge/wsgi.py'.
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1] Traceback (most recent call last):
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1]   File "/home/victoria88/webapps/cartridge/lib/python2.7/django/core/handlers/wsgi.py", line 255, in __call__
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1]     response = self.get_response(request)
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1]   File "/home/victoria88/webapps/cartridge/lib/python2.7/django/core/handlers/base.py", line 178, in get_response
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1]     response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1]   File "/home/victoria88/webapps/cartridge/lib/python2.7/django/core/handlers/base.py", line 224, in handle_uncaught_exception
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1]     return callback(request, **param_dict)
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1]   File "/home/victoria88/webapps/cartridge/lib/python2.7/django/utils/decorators.py", line 91, in _wrapped_view
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1]     response = view_func(request, *args, **kwargs)
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1]   File "/home/victoria88/webapps/cartridge/lib/python2.7/Mezzanine-3.0.9-py2.7.egg/mezzanine/core/views.py", line 220, in server_error
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1]     return HttpResponseServerError(t.render(context))
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1]   File "/home/victoria88/webapps/cartridge/lib/python2.7/django/template/base.py", line 140, in render
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1]     return self._render(context)
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1]   File "/home/victoria88/webapps/cartridge/lib/python2.7/django/template/base.py", line 134, in _render
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1]     return self.nodelist.render(context)
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1]   File "/home/victoria88/webapps/cartridge/lib/python2.7/django/template/base.py", line 830, in render
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1]     bit = self.render_node(node, context)
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1]   File "/home/victoria88/webapps/cartridge/lib/python2.7/django/template/base.py", line 844, in render_node
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1]     return node.render(context)
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1]   File "/home/victoria88/webapps/cartridge/lib/python2.7/django/template/loader_tags.py", line 124, in render
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1]     return compiled_parent._render(context)
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1]   File "/home/victoria88/webapps/cartridge/lib/python2.7/django/template/base.py", line 134, in _render
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1]     return self.nodelist.render(context)
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1]   File "/home/victoria88/webapps/cartridge/lib/python2.7/django/template/base.py", line 830, in render
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1]     bit = self.render_node(node, context)
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1]   File "/home/victoria88/webapps/cartridge/lib/python2.7/django/template/base.py", line 844, in render_node
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1]     return node.render(context)
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1]   File "/home/victoria88/webapps/cartridge/lib/python2.7/Mezzanine-3.0.9-py2.7.egg/mezzanine/template/__init__.py", line 85, in render
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1]     args = (self.nodelist.render(context), context, token)
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1]   File "/home/victoria88/webapps/cartridge/lib/python2.7/django/template/base.py", line 830, in render
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1]     bit = self.render_node(node, context)
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1]   File "/home/victoria88/webapps/cartridge/lib/python2.7/django/template/base.py", line 844, in render_node
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1]     return node.render(context)
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1]   File "/home/victoria88/webapps/cartridge/lib/python2.7/django/template/loader_tags.py", line 156, in render
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1]     return self.render_template(self.template, context)
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1]   File "/home/victoria88/webapps/cartridge/lib/python2.7/django/template/loader_tags.py", line 138, in render_template
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1]     output = template.render(context)
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1]   File "/home/victoria88/webapps/cartridge/lib/python2.7/django/template/base.py", line 140, in render
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1]     return self._render(context)
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1]   File "/home/victoria88/webapps/cartridge/lib/python2.7/django/template/base.py", line 134, in _render
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1]     return self.nodelist.render(context)
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1]   File "/home/victoria88/webapps/cartridge/lib/python2.7/django/template/base.py", line 830, in render
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1]     bit = self.render_node(node, context)
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1]   File "/home/victoria88/webapps/cartridge/lib/python2.7/django/template/base.py", line 844, in render_node
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1]     return node.render(context)
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1]   File "/home/victoria88/webapps/cartridge/lib/python2.7/django/template/defaulttags.py", line 369, in render
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1]     return strip_spaces_between_tags(self.nodelist.render(context).strip())
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1]   File "/home/victoria88/webapps/cartridge/lib/python2.7/django/template/base.py", line 830, in render
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1]     bit = self.render_node(node, context)
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1]   File "/home/victoria88/webapps/cartridge/lib/python2.7/django/template/base.py", line 844, in render_node
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1]     return node.render(context)
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1]   File "/home/victoria88/webapps/cartridge/lib/python2.7/Mezzanine-3.0.9-py2.7.egg/mezzanine/core/templatetags/mezzanine_tags.py", line 184, in render
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1]     return nodelist.render(context)
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1]   File "/home/victoria88/webapps/cartridge/lib/python2.7/django/template/base.py", line 830, in render
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1]     bit = self.render_node(node, context)
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1]   File "/home/victoria88/webapps/cartridge/lib/python2.7/django/template/base.py", line 844, in render_node
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1]     return node.render(context)
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1]   File "/home/victoria88/webapps/cartridge/lib/python2.7/django/template/loader_tags.py", line 156, in render
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1]     return self.render_template(self.template, context)
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1]   File "/home/victoria88/webapps/cartridge/lib/python2.7/django/template/loader_tags.py", line 138, in render_template
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1]     output = template.render(context)
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1]   File "/home/victoria88/webapps/cartridge/lib/python2.7/django/template/base.py", line 140, in render
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1]     return self._render(context)
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1]   File "/home/victoria88/webapps/cartridge/lib/python2.7/django/template/base.py", line 134, in _render
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1]     return self.nodelist.render(context)
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1]   File "/home/victoria88/webapps/cartridge/lib/python2.7/django/template/base.py", line 830, in render
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1]     bit = self.render_node(node, context)
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1]   File "/home/victoria88/webapps/cartridge/lib/python2.7/django/template/base.py", line 844, in render_node
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1]     return node.render(context)
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1]   File "/home/victoria88/webapps/cartridge/lib/python2.7/django/template/defaulttags.py", line 285, in render
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1]     return nodelist.render(context)
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1]   File "/home/victoria88/webapps/cartridge/lib/python2.7/django/template/base.py", line 830, in render
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1]     bit = self.render_node(node, context)
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1]   File "/home/victoria88/webapps/cartridge/lib/python2.7/django/template/base.py", line 844, in render_node
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1]     return node.render(context)
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1]   File "/home/victoria88/webapps/cartridge/lib/python2.7/django/template/defaulttags.py", line 426, in render
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1]     raise e
[Sat Apr 19 10:15:32 2014] [error] [client 127.0.0.1] NoReverseMatch: Reverse for 'login' with arguments '()' and keyword arguments '{}' not found.

Liam Thompson

unread,
Apr 21, 2014, 4:54:49 AM4/21/14
to django...@googlegroups.com

Are you certain that you are passing the correct or required parameters to the URL, and is the URL actually named ?

Alon Nisser

unread,
Apr 21, 2014, 10:42:58 AM4/21/14
to django...@googlegroups.com
Why did you specify production server? does the code work correctly on a staging/development server? Is this error only in the production server? If so, probably a configuration Issue
Reply all
Reply to author
Forward
0 new messages