[Answer]-NoReverseMatch error with Django

1👍

Your URL for the view_event view does not take any parameters. You’d need to have something like this:

url(r'^student/calendar/events/(?P<event_title>\w+)/$', views.view_event, name = 'view_event'),

Note that a title is not really suitable for using in a URL anyway, as it can presumably contain spaces. You should use a slug or a numeric ID.

Also note that your event_title view should use Event.objects.get not filter.

Leave a comment