Caught NoReverseMatch while rendering: Reverse for 'views.main' with arguments '()' and keyword arguments '{}' not found.
I do not understand what might cause the error.
My URLs
urlpatterns = patterns('',
url(r'^$', views.main),
html template
<a href="{% url views.main %}"> bla bla blah</a>
And in my view.py
return render_to_response("main.html", d, context_instance=RequestContext(request))
I checked TEMPLATE_DIRS and they seem to point to the correct directory.
source
share