1
This line is incorrect.
url(r'^$', include('app.urls')),
The caret ^
matches the beginning of the string, and the dollar $
matches the end if the string, so ^$
only matches the index URL /
. You should change it to:
url(r'^', include('app.urls')),
Apart from that, it’s impossible to help if you don’t post the whole urls.py. Try not to change the code or error message. For example, when you you change it to say ‘app.urls’, you could be hiding the mistake in your code.
Source:stackexchange.com