environment Python 3.5.0 Djnago 1.9.2
urls.py
app_name = 'app' #add to urlpatterns = [ url(r'^$', views.index, name='index'), ]
template.html
{% url 'app:index' %}
Recommended Posts