Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoReverseMatch at /admin/auth/user/52ade053f9bed911e71dfa5e/ #48

Open
viyatb opened this issue Dec 21, 2013 · 1 comment
Open

NoReverseMatch at /admin/auth/user/52ade053f9bed911e71dfa5e/ #48

viyatb opened this issue Dec 21, 2013 · 1 comment

Comments

@viyatb
Copy link

viyatb commented Dec 21, 2013

Now clicking on a specific user in "Users" in the admin, django throws this error:

 NoReverseMatch at /admin/auth/user/52ade053f9bed911e71dfa5e/ Reverse for  'view_on_site' with arguments '(u'52aca520f9bed9267bd2e23a',      u'52ade053f9bed911e71dfa5e')' and keyword arguments '{}' not found.

Here is the full traceback:

 Environment:


Request Method: GET
Request URL: http://localhost:8000/admin/auth/user/52ade053f9bed911e71dfa5e/

Django Version: 1.5.5
Python Version: 2.7.6
Installed Applications:
('django_mongodb_engine',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'django.contrib.admin',
 'djangotoolbox',
 'django_mongodb_engine',
 'dbarch')
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware')


Template error:
In template /home/viyat/Desktop/zmongo/env/lib/python2.7/site-packages/django/contrib/admin/templates/admin/change_form.html, error at line 33
   Reverse for 'view_on_site' with arguments '(u'52aca520f9bed9267bd2e23a', u'52ade053f9bed911e71dfa5e')' and keyword arguments '{}' not found.
   23 : </div>


   24 : {% endblock %}


   25 : {% endif %}


   26 : 


   27 : {% block content %}<div id="content-main">


   28 : {% block object-tools %}


   29 : {% if change %}{% if not is_popup %}


   30 :   <ul class="object-tools">


   31 :     {% block object-tools-items %}


   32 :     <li><a href="{% url opts|admin_urlname:'history' original.pk|admin_urlquote %}" class="historylink">{% trans "History" %}</a></li>


   33 :     {% if has_absolute_url %}<li><a href=" {% url 'admin:view_on_site' content_type_id original.pk%} " class="viewsitelink">{% trans "View on site" %}</a></li>{% endif%}


   34 :     {% endblock %}


   35 :   </ul>


   36 : {% endif %}{% endif %}


   37 : {% endblock %}


   38 : <form {% if has_file_field %}enctype="multipart/form-data" {% endif %}action="{{ form_url }}" method="post" id="{{ opts.module_name }}_form">{% csrf_token %}{% block form_top %}{% endblock %}


   39 : <div>


   40 : {% if is_popup %}<input type="hidden" name="_popup" value="1" />{% endif %}


   41 : {% if save_on_top %}{% block submit_buttons_top %}{% submit_row %}{% endblock %}{% endif %}


   42 : {% if errors %}


   43 :     <p class="errornote">


Traceback:
File "/home/viyat/Desktop/zmongo/env/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
  140.                     response = response.render()
File "/home/viyat/Desktop/zmongo/env/lib/python2.7/site-packages/django/template/response.py" in render
  105.             self.content = self.rendered_content
File "/home/viyat/Desktop/zmongo/env/lib/python2.7/site-packages/django/template/response.py" in rendered_content
  82.         content = template.render(context)
File "/home/viyat/Desktop/zmongo/env/lib/python2.7/site-packages/django/template/base.py" in render
  140.             return self._render(context)
File "/home/viyat/Desktop/zmongo/env/lib/python2.7/site-packages/django/template/base.py" in _render
  134.         return self.nodelist.render(context)
File "/home/viyat/Desktop/zmongo/env/lib/python2.7/site-packages/django/template/base.py" in render
  830.                 bit = self.render_node(node, context)
File "/home/viyat/Desktop/zmongo/env/lib/python2.7/site-packages/django/template/debug.py" in render_node
  74.             return node.render(context)
File "/home/viyat/Desktop/zmongo/env/lib/python2.7/site-packages/django/template/loader_tags.py" in render
  124.         return compiled_parent._render(context)
File "/home/viyat/Desktop/zmongo/env/lib/python2.7/site-packages/django/template/base.py" in _render
  134.         return self.nodelist.render(context)
File "/home/viyat/Desktop/zmongo/env/lib/python2.7/site-packages/django/template/base.py" in render
  830.                 bit = self.render_node(node, context)
File "/home/viyat/Desktop/zmongo/env/lib/python2.7/site-packages/django/template/debug.py" in render_node
  74.             return node.render(context)
File "/home/viyat/Desktop/zmongo/env/lib/python2.7/site-packages/django/template/loader_tags.py" in render
  124.         return compiled_parent._render(context)
File "/home/viyat/Desktop/zmongo/env/lib/python2.7/site-packages/django/template/base.py" in _render
  134.         return self.nodelist.render(context)
File "/home/viyat/Desktop/zmongo/env/lib/python2.7/site-packages/django/template/base.py" in render
  830.                 bit = self.render_node(node, context)
File "/home/viyat/Desktop/zmongo/env/lib/python2.7/site-packages/django/template/debug.py" in render_node
  74.             return node.render(context)
File "/home/viyat/Desktop/zmongo/env/lib/python2.7/site-packages/django/template/loader_tags.py" in render
  63.             result = block.nodelist.render(context)
File "/home/viyat/Desktop/zmongo/env/lib/python2.7/site-packages/django/template/base.py" in render
  830.                 bit = self.render_node(node, context)
File "/home/viyat/Desktop/zmongo/env/lib/python2.7/site-packages/django/template/debug.py" in render_node
  74.             return node.render(context)
File "/home/viyat/Desktop/zmongo/env/lib/python2.7/site-packages/django/template/loader_tags.py" in render
  63.             result = block.nodelist.render(context)
File "/home/viyat/Desktop/zmongo/env/lib/python2.7/site-packages/django/template/base.py" in render
  830.                 bit = self.render_node(node, context)
File "/home/viyat/Desktop/zmongo/env/lib/python2.7/site-packages/django/template/debug.py" in render_node
  74.             return node.render(context)
File "/home/viyat/Desktop/zmongo/env/lib/python2.7/site-packages/django/template/defaulttags.py" in render
  285.                 return nodelist.render(context)
File "/home/viyat/Desktop/zmongo/env/lib/python2.7/site-packages/django/template/base.py" in render
  830.                 bit = self.render_node(node, context)
File "/home/viyat/Desktop/zmongo/env/lib/python2.7/site-packages/django/template/debug.py" in render_node
  74.             return node.render(context)
File "/home/viyat/Desktop/zmongo/env/lib/python2.7/site-packages/django/template/defaulttags.py" in render
  285.                 return nodelist.render(context)
File "/home/viyat/Desktop/zmongo/env/lib/python2.7/site-packages/django/template/base.py" in render
  830.                 bit = self.render_node(node, context)
File "/home/viyat/Desktop/zmongo/env/lib/python2.7/site-packages/django/template/debug.py" in render_node
  74.             return node.render(context)
File "/home/viyat/Desktop/zmongo/env/lib/python2.7/site-packages/django/template/loader_tags.py" in render
  63.             result = block.nodelist.render(context)
File "/home/viyat/Desktop/zmongo/env/lib/python2.7/site-packages/django/template/base.py" in render
  830.                 bit = self.render_node(node, context)
File "/home/viyat/Desktop/zmongo/env/lib/python2.7/site-packages/django/template/debug.py" in render_node
  74.             return node.render(context)
File "/home/viyat/Desktop/zmongo/env/lib/python2.7/site-packages/django/template/defaulttags.py" in render
  285.                 return nodelist.render(context)
File "/home/viyat/Desktop/zmongo/env/lib/python2.7/site-packages/django/template/base.py" in render
  830.                 bit = self.render_node(node, context)
File "/home/viyat/Desktop/zmongo/env/lib/python2.7/site-packages/django/template/debug.py" in render_node
  74.             return node.render(context)
File "/home/viyat/Desktop/zmongo/env/lib/python2.7/site-packages/django/template/defaulttags.py" in render
  426.                         raise e

Exception Type: NoReverseMatch at /admin/auth/user/52ade053f9bed911e71dfa5e/
Exception Value: Reverse for 'view_on_site' with arguments '(u'52aca520f9bed9267bd2e23a', u'52ade053f9bed911e71dfa5e')' and keyword arguments '{}' not found.

@viyatb
Copy link
Author

viyatb commented Dec 22, 2013

Fixed after updating to latest _non-rel 1.5_ branch of _Django-nonrel_

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant