2👍
✅
Your view.py
for polls
must be in projectname/polls/
directory when first urls.py
will be in projectname/projectname/
.
Then, if you decide to configure and add more polls app specific urls, you can create urls.py
in projectname/polls/
.
Source:stackexchange.com