Django tutorial 2.0 problem on admin site

29 views
Skip to first unread message

Zhizhong Kang

unread,
Mar 28, 2018, 12:25:12 PM3/28/18
to Django users
Hey guys what's up. I've got problem on the poll app in the admin site. For now I can enter the admin site and poll app is displayed.













However, when I clicked the 'Question', I didn't get the change lists page for Question. My admin.py is the same as the tutorial admin.py.

                      



The env is python3 + django 2.0.3 + macOS 10.12.6.






Daniel Hepper

unread,
Mar 28, 2018, 1:35:01 PM3/28/18
to Django users
My guess is that there is a problem with your URL definition.

Double-check your mysite/urls.py and polls/urls.py

When in doubt, post the source of both files (preferably as text, not screenshot).

Hope that helps,
Daniel

Zhizhong Kang

unread,
Mar 28, 2018, 2:53:39 PM3/28/18
to Django users
Thank you. You are right there are problems in both my mysite/urls.py and polls/urls.py. I fixed it by following the tutorial.
Reply all
Reply to author
Forward
0 new messages