[Answer]-Django urlpatterns won't match

1👍

This pattern, the one you’re going for, requires a trailing slash.

url(r'^(?P<msg_id>\d+)/$', views.detail, name='detail'),

The URL you’re using, sendemail/1, doesn’t have one.

Leave a comment