2👍
✅
Please change your url entry:
url('^graph/(?P<exercise_name>\w+)/$',graph_exercisename,name="graph_exercisename"),
to:
url('^graph/(?P<exercise_name>[^/]+)/$',graph_exercisename,name="graph_exercisename"),
Source:stackexchange.com