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.
- [Answered ]-Immutable variable for unit tests
- [Answered ]-How to strip(not remove) specified tags from a html string using Python?
- [Answered ]-Patching multiple ORM calls in Django
Source:stackexchange.com