[Answered ]-Django NoReverseMatch error, reverse function not work with no arguments

2👍

Your urls.py (springsend one) doesn’t seem to have a url for the sending view, that’s probably why {% url 'whatspring:sending' %} can’t find it.

Simply change it to

from django.conf.urls import patterns, url
from springsend import views

urlpatterns = patterns('',
    url(r'^$', views.index, name='index'),
    url(r'^results/$', views.results, name='results'),
    url(r'^sending/$', views.sending, name='sending'), # this line
)

Every accessible view needs a url. The user’s browser needs to have some address to send things. If it would just send it to your domain without url, Django would have no way to tell which url is requested. Django does not auto-generate these urls (which is probably good).

(The user himself does not need to know this url; you don’t need to place any ` links anywhere.)

👤Mark

Leave a comment