Why are the items not appearing in the table?

58 views
Skip to first unread message

Matheus Bon

unread,
Sep 6, 2022, 4:58:16 PM9/6/22
to Django users
Hello friends!

I'm creating a point of sale with a friend in order to increase our Portfolio. However, I'm having a problem to present the items in a table, I've already added items through the Django admin panel, but in the template it doesn't appear.

I will be leaving the POS link that is on github, because I believe it is easier.
https://github.com/Matheus-Bon/frente-de-caixa

OBS: I'm Brazilian, so the codes will be in my language, but I think that's not a problem.

The app I created to make the table is called app: 'cadastro'; and I want to put the table in the app called: 'paginas' in the template called: 'estoque.html' and 'gastos.html'

If you need any more information, please ask, I'm available, and if you can't open git and want me to send the codes, you can talk, I'm available


Thank you very much!

Francisco Valadares

unread,
Sep 8, 2022, 4:50:39 PM9/8/22
to django...@googlegroups.com

Hello Matheus Bon ,




Could you give me more detail about " I've already added items through the Django admin panel, but in the template it doesn't appear." 
Are You not visualising your items in the following screen?

image.png


Att,
Francisco

--
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/901f7db3-be26-4d46-ab7c-6f3c6d6d6317n%40googlegroups.com.

Matheus Bon

unread,
Sep 8, 2022, 5:02:33 PM9/8/22
to django...@googlegroups.com
Hello, Francisco!
We've managed to solve this problem! Thank you so much for your time.


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/Dc7dVUOD7CE/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/CAA-J3ictfpi5iWn%3DBQP0SSJ446Zq70gTprKitkJzmt%2BxuTj3GA%40mail.gmail.com.

Boris Pérez

unread,
Sep 8, 2022, 7:23:52 PM9/8/22
to django...@googlegroups.com
Oi Matheus!!! É possible que vc esquecera enviar na lista de items a o template dd a view?

Matheus Bon

unread,
Sep 9, 2022, 7:04:08 AM9/9/22
to django...@googlegroups.com
The error looked like this. But for what I was wanting I had to leave this class method and go to the def method...
That way I can do a lot more customization, like putting the update view in a popup.

But I managed to solve it, thank you very much Boris!

Reply all
Reply to author
Forward
0 new messages