1👍
As described in Part 3 of the Tutorial, you need to add additial entries to your urls.py
. It’s unclear how you had a homepage view without any entries (besides for the admin), if you were running the development server with ./manage.py runserver
.
If you have a a viewable homepage at http://localhost:8000/
with an entry in your urlpatterns
like:
url(r'^$', 'polls.views.index'),
as long as polls
was on the python path, had a views.py
in it which contained a callable named index
.
Source:stackexchange.com