I was facing Type Error

34 views
Skip to first unread message

MaheshKumar

unread,
Nov 2, 2022, 1:37:20 AM11/2/22
to Django users
Today i created the project to create an database and then to display those datas in database in list format.

Now i was facing this type error

Screenshot (22).pngScreenshot (21).png

Muhammad Juwaini Abdul Rahman

unread,
Nov 2, 2022, 2:10:51 AM11/2/22
to django...@googlegroups.com
Why did you put the query inside .all()?

--
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/b972fd37-88f2-4e04-8c9d-1f38370dcbadn%40googlegroups.com.

mahesh kumar

unread,
Nov 2, 2022, 2:51:06 AM11/2/22
to django...@googlegroups.com
To access the database table, so only i put that query on it
Thanks & Regards,
Mahesh Kumar.V,
8525040047


You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/pV62r5V79KI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAFKhtoQ5%3Dx75T-y9h5Hhim8Hy4oOHGp7Zo6K9HF%3DNAiPBjXpNA%40mail.gmail.com.

peteru mimo

unread,
Nov 2, 2022, 3:04:17 AM11/2/22
to django...@googlegroups.com
Remove the query from all() and also your model suppose be Employeeapp not employeeapp

mahesh kumar

unread,
Nov 2, 2022, 3:07:52 AM11/2/22
to django...@googlegroups.com
When i removed the query , then my template was running and opened successfully but the data's does not shows in webpage sir.image.png


Thanks & Regards,
Mahesh Kumar.V,
8525040047

You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/pV62r5V79KI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAJBAA1%2BZ93EU%3Dp_xGRe2vezx5q_%2B79eb4iAQ98sRmFK17ZbupA%40mail.gmail.com.

subin

unread,
Nov 3, 2022, 3:47:21 PM11/3/22
to django...@googlegroups.com
Thank you for your immediate response.

subin

unread,
Nov 3, 2022, 3:47:49 PM11/3/22
to django...@googlegroups.com
Please let me know if you need an extension.

On Wed, Nov 2, 2022 at 7:10 AM Muhammad Juwaini Abdul Rahman <juw...@gmail.com> wrote:

subin

unread,
Nov 3, 2022, 3:48:22 PM11/3/22
to django...@googlegroups.com
Please let me know if that is okay.

--

Mario Shaya

unread,
Nov 3, 2022, 10:32:30 PM11/3/22
to Django users
could you show your code?
Reply all
Reply to author
Forward
0 new messages