[Answered ]-Django urls.py gives a 404 error while trying to access a URL

2👍

Looks like media.urls only has two urls, videos/ & videos/pk/

This means your only two url options are browse/videos/ and browse/videos/pk/

There is no url to just ‘browse/’

If you wanted to add one, you’d need to add this to media.urls:

url(r'^$', some_view, name='some_view_name'),

Leave a comment