Problem in polls app(ques text will not display)

13 views
Skip to first unread message

Balkrishana Gaur

unread,
Apr 21, 2020, 2:36:32 PM4/21/20
to Django users
Dear sir i am new to django. And following each and every step to create my first app. Almost done. But at the time of polls question no text will display while i use to run 127.0.0.1/8000/polls
What can i do

Antje Kazimiers

unread,
Apr 21, 2020, 4:29:13 PM4/21/20
to django...@googlegroups.com
It sounds like your database is empty. Did you check if there are any
Question records in your admin view? Under

127.0.0.1:8000/admin

You should see an entry for Questions and you can create question
records there.

Here they describe, how to create those records using the django
management shell:

https://docs.djangoproject.com/en/3.0/intro/tutorial02/#playing-with-the-api

I think if you have records in your database, the index view should list
them.

Antje

LGBS fine soul coders

unread,
Apr 21, 2020, 4:56:28 PM4/21/20
to django...@googlegroups.com
Try to send your source code

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/d6459c76-f83f-b902-19aa-7e4bcdcbacfb%40gmail.com.
Reply all
Reply to author
Forward
0 new messages