[Answered ]-How to match begin URL with REGEX in Django

2👍

Add a dot before *:

url(r'api_t/1-0-0.*$', Deprecated.as_list(), name='deprecated')

The asterisk * sign means “repeat previous symbol zere or more times”. The dot . means “any char”. So .* will match any string.

Leave a comment