[Answer]-Matching a time pattern in django urls

1👍

The url /calendar/entry/add/2013/11/23/05:30 does not contain trailing /.

Remove the trailing / from the url pattern or make it optional to make it match with the url

url(r'^entry/add/(?P<year>\d+)/(?P<month>\d+)/(?P<day>\d+)/(?P<time>\d+:\d+)/?$', 'view')
#                                                                           ^^

Leave a comment