[Answered ]-Url pattern in django template handling spaces in url arg

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"),

Leave a comment