{"action":"opened","issue":{"url":"https://api.github.com/repos/rtfd/readthedocs.org/issues/1929","labels_url":"https://api.github.com/repos/rtfd/readthedocs.org/issues/1929/labels{/name}","comments_url":"https://api.github.com/repos/rtfd/readthedocs.org/issues/1929/comments","events_url":"https://api.github.com/repos/rtfd/readthedocs.org/issues/1929/events","html_url":"https://github.com/rtfd/readthedocs.org/issues/1929","id":126712440,"number":1929,"title":"Getting HTTP:500 when owner accesses own project page","user":{"login":"svvac","id":129217,"avatar_url":"https://avatars.githubusercontent.com/u/129217?v=3","gravatar_id":"","url":"https://api.github.com/users/svvac","html_url":"https://github.com/svvac","followers_url":"https://api.github.com/users/svvac/followers","following_url":"https://api.github.com/users/svvac/following{/other_user}","gists_url":"https://api.github.com/users/svvac/gists{/gist_id}","starred_url":"https://api.github.com/users/svvac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/svvac/subscriptions","organizations_url":"https://api.github.com/users/svvac/orgs","repos_url":"https://api.github.com/users/svvac/repos","events_url":"https://api.github.com/users/svvac/events{/privacy}","received_events_url":"https://api.github.com/users/svvac/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-14T18:03:19Z","updated_at":"2016-01-14T18:03:19Z","closed_at":null,"body":"Hi!\r\n\r\nOn a local RTD install, when a project owner tries to access the project page (i.e. `/project/{slug}/`), RTD returns a 500 whereas anonymous or other users can access it without problem.\r\n\r\nI traced the problem to `readthedocs/templates/projects/onboard_detail.html:30`where the culprit seems to be the following `url` template tag (disabling it fixes the issue):\r\n\r\n```html\r\n<form method=\"get\" action=\"{% url \"docs_detail\" project_slug=project.slug %}\">\r\n```\r\n\r\nThe related trace:\r\n\r\n```\r\n/[14/Jan/2016 11:53:33] ERROR [django.request:256] Internal Server Error: /projects/test/\r\nTraceback (most recent call last):\r\n  File \"/venv/local/lib/python2.7/site-packages/django/core/handlers/base.py\", line 164, in get_response\r\n    response = response.render()\r\n  File \"/venv/local/lib/python2.7/site-packages/django/template/response.py\", line 158, in render\r\n    self.content = self.rendered_content\r\n  File \"/venv/local/lib/python2.7/site-packages/django/template/response.py\", line 135, in rendered_content\r\n    content = template.render(context, self._request)\r\n  File \"/venv/local/lib/python2.7/site-packages/django/template/backends/django.py\", line 74, in render\r\n    return self.template.render(context)\r\n  File \"/venv/local/lib/python2.7/site-packages/django/template/base.py\", line 209, in render\r\n    return self._render(context)\r\n  File \"/venv/local/lib/python2.7/site-packages/django/template/base.py\", line 201, in _render\r\n    return self.nodelist.render(context)\r\n  File \"/venv/local/lib/python2.7/site-packages/django/template/base.py\", line 903, in render\r\n    bit = self.render_node(node, context)\r\n  File \"/venv/local/lib/python2.7/site-packages/django/template/debug.py\", line 79, in render_node\r\n    return node.render(context)\r\n  File \"/venv/local/lib/python2.7/site-packages/django/template/loader_tags.py\", line 135, in render\r\n    return compiled_parent._render(context)\r\n  File \"/venv/local/lib/python2.7/site-packages/django/template/base.py\", line 201, in _render\r\n    return self.nodelist.render(context)\r\n  File \"/venv/local/lib/python2.7/site-packages/django/template/base.py\", line 903, in render\r\n    bit = self.render_node(node, context)\r\n  File \"/venv/local/lib/python2.7/site-packages/django/template/debug.py\", line 79, in render_node\r\n    return node.render(context)\r\n  File \"/venv/local/lib/python2.7/site-packages/django/template/loader_tags.py\", line 135, in render\r\n    return compiled_parent._render(context)\r\n  File \"/venv/local/lib/python2.7/site-packages/django/template/base.py\", line 201, in _render\r\n    return self.nodelist.render(context)\r\n  File \"/venv/local/lib/python2.7/site-packages/django/template/base.py\", line 903, in render\r\n    bit = self.render_node(node, context)\r\n  File \"/venv/local/lib/python2.7/site-packages/django/template/debug.py\", line 79, in render_node\r\n    return node.render(context)\r\n  File \"/venv/local/lib/python2.7/site-packages/django/template/loader_tags.py\", line 65, in render\r\n    result = block.nodelist.render(context)\r\n  File \"/venv/local/lib/python2.7/site-packages/django/template/base.py\", line 903, in render\r\n    bit = self.render_node(node, context)\r\n  File \"/venv/local/lib/python2.7/site-packages/django/template/debug.py\", line 79, in render_node\r\n    return node.render(context)\r\n  File \"/venv/local/lib/python2.7/site-packages/django/template/loader_tags.py\", line 159, in render\r\n    return template.render(context)\r\n  File \"/venv/local/lib/python2.7/site-packages/django/template/base.py\", line 211, in render\r\n    return self._render(context)\r\n  File \"/venv/local/lib/python2.7/site-packages/django/template/base.py\", line 201, in _render\r\n    return self.nodelist.render(context)\r\n  File \"/venv/local/lib/python2.7/site-packages/django/template/base.py\", line 903, in render\r\n    bit = self.render_node(node, context)\r\n  File \"/venv/local/lib/python2.7/site-packages/django/template/debug.py\", line 79, in render_node\r\n    return node.render(context)\r\n  File \"/venv/local/lib/python2.7/site-packages/django/template/defaulttags.py\", line 329, in render\r\n    return nodelist.render(context)\r\n  File \"/venv/local/lib/python2.7/site-packages/django/template/base.py\", line 903, in render\r\n    bit = self.render_node(node, context)\r\n  File \"/venv/local/lib/python2.7/site-packages/django/template/debug.py\", line 79, in render_node\r\n    return node.render(context)\r\n  File \"/venv/local/lib/python2.7/site-packages/django/template/loader_tags.py\", line 159, in render\r\n    return template.render(context)\r\n  File \"/venv/local/lib/python2.7/site-packages/django/template/base.py\", line 211, in render\r\n    return self._render(context)\r\n  File \"/venv/local/lib/python2.7/site-packages/django/template/base.py\", line 201, in _render\r\n    return self.nodelist.render(context)\r\n  File \"/venv/local/lib/python2.7/site-packages/django/template/base.py\", line 903, in render\r\n    bit = self.render_node(node, context)\r\n  File \"/venv/local/lib/python2.7/site-packages/django/template/debug.py\", line 79, in render_node\r\n    return node.render(context)\r\n  File \"/venv/local/lib/python2.7/site-packages/django/template/defaulttags.py\", line 329, in render\r\n    return nodelist.render(context)\r\n  File \"/venv/local/lib/python2.7/site-packages/django/template/base.py\", line 903, in render\r\n    bit = self.render_node(node, context)\r\n  File \"/venv/local/lib/python2.7/site-packages/django/template/debug.py\", line 79, in render_node\r\n    return node.render(context)\r\n  File \"/venv/local/lib/python2.7/site-packages/django/template/defaulttags.py\", line 329, in render\r\n    return nodelist.render(context)\r\n  File \"/venv/local/lib/python2.7/site-packages/django/template/base.py\", line 903, in render\r\n    bit = self.render_node(node, context)\r\n  File \"/venv/local/lib/python2.7/site-packages/django/template/debug.py\", line 79, in render_node\r\n    return node.render(context)\r\n  File \"/venv/local/lib/python2.7/site-packages/django/template/defaulttags.py\", line 329, in render\r\n    return nodelist.render(context)\r\n  File \"/venv/local/lib/python2.7/site-packages/django/template/base.py\", line 903, in render\r\n    bit = self.render_node(node, context)\r\n  File \"/venv/local/lib/python2.7/site-packages/django/template/debug.py\", line 79, in render_node\r\n    return node.render(context)\r\n  File \"/venv/local/lib/python2.7/site-packages/django/template/defaulttags.py\", line 329, in render\r\n    return nodelist.render(context)\r\n  File \"/venv/local/lib/python2.7/site-packages/django/template/base.py\", line 903, in render\r\n    bit = self.render_node(node, context)\r\n  File \"/venv/local/lib/python2.7/site-packages/django/template/debug.py\", line 79, in render_node\r\n    return node.render(context)\r\n  File \"/venv/local/lib/python2.7/site-packages/django/template/defaulttags.py\", line 507, in render\r\n    six.reraise(*exc_info)\r\n  File \"/venv/local/lib/python2.7/site-packages/django/template/defaulttags.py\", line 493, in render\r\n    url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app)\r\n  File \"/venv/local/lib/python2.7/site-packages/django/core/urlresolvers.py\", line 579, in reverse\r\n    return force_text(iri_to_uri(resolver._reverse_with_prefix(view, prefix, *args, **kwargs)))\r\n  File \"/venv/local/lib/python2.7/site-packages/django/core/urlresolvers.py\", line 496, in _reverse_with_prefix\r\n    (lookup_view_s, args, kwargs, len(patterns), patterns))\r\nNoReverseMatch: Reverse for 'docs_detail' with arguments '()' and keyword arguments '{u'project_slug': u'test'}' not found. 0 pattern(s) tried: []\r\n```"}}