Django tutorial 2.0 problem on admin site

29 visualizzazioni
Passa al primo messaggio da leggere

Zhizhong Kang

da leggere,
28 mar 2018, 12:25:1228/03/18
a 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

da leggere,
28 mar 2018, 13:35:0128/03/18
a 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

da leggere,
28 mar 2018, 14:53:3928/03/18
a 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.
Rispondi a tutti
Rispondi all'autore
Inoltra
0 nuovi messaggi