1👍
Try this: url(r'^/api/v1', include('rest_api.urls'))
. Just add a front slash to the pattern.
When you visit http://host/api/v1/xxx
, django will use /api/v1/xxx
to match the patterns. But ^api/v1
fails the match because of the missing front slash.
Source:stackexchange.com