[Answer]-Django, how to pass just the last segment of url to view

1👍

I will suggest you to simply write you url like.

url(r'^(?P<identifier>[\w]+)/$', views.render_form),

[\w] will tell you that you can pass word character (A-Za-z0-9_).

Leave a comment