﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
6192	url or reverse raise ViewDoesNotExists but fail to properly identify which view	alex@…	nobody	"Got an unexpected error while was working with admin part.
On first call to '/admin', Django was displaying ViewDoesNotExists exception with reference to view that was included in my project's urls. Although that view truly didn't yet existed (I just put a reference to nonexistent view in order to write it later), it hadn't any relation to `admin` app.
The source of error was admin's template system. Especially the 'base.html', at that line:
{{{
{% url django.contrib.admin.views.doc.doc_index %}
}}}
That were strange. It took a while for me to find the reason.

I believe this is because of the way `url` template tag works.
It seems like it looks up in all available urls and views to calculate corresponding URL. And falls on nonexistent views.

This behaviour should be documented or (better) special exception should be raised in such case. 

"		closed	Core (Other)	dev		worksforme	exception, ViewDoesNotExists, url		Accepted	0	0	0	0	0	0
