[Django]-Polls application โ€” django tutorial not working

5๐Ÿ‘

โœ…

Your index url pattern is in polls/urls.py, which you included under r'^polls/' so you should access it at:

http://localhost:8000/polls/

Getting a 404 for http://localhost:8000/ is expected behaviour, because your main urls.py only includes urls at admin/ and polls/. You would have to add a url pattern with regex r'^$' to main/urls.py to stop the 404.

๐Ÿ‘คAlasdair

Leave a comment