[Answered ]-How to properly configure ROOT_URLCONF

1👍

You should have ROOT_URLCONF = mysite.urls. Since you have included the polls app under r'^polls/', you can access the polls index view at

http://localhost:8000/polls/

If you want to create a url pattern for http://localhost:8000/, then add it to your url patterns in mysite.urls.

1👍

I had the same problem and i resolved it using following change:

In the setting.py, you should have
ROOT_URLCONF=mysite.urls

But inside mysite/urls.py,
import polls.urls
it will then locate the index page.

Leave a comment