Tuesday, December 24, 2019

Re: Feeding a stored procedure (MySQL) into Django_Tables2 table

Hi Issuer,

Dump data field from model to json obj.
And combines them as a dictionary.




On Wed, Dec 25, 2019, 11:19 sum abiut <suabiut@gmail.com> wrote:
Can you show us your models.

On Wed, 25 Dec 2019, 08:03 Gregory Vaks, <greg.vaks@gmail.com> wrote:
Hello all,

I am using Django-Tables2 for front-end in my app as it nicely fits my requirement for displaying information.

My issue is that I need to display information from multiple models (MySQL tables) in one screen/template.  There is a stored procedure that gets all the information that I need and I tested out calling it which works fine but there is no documentation on how to feed this data into a table.

The Django-Tables2 seems to use a table struct which gets data from fields that can be specified based off the model you declare while in my case I am not using just one model so this method will not work for me.  I have tried different methods and searching for better documentation or if anyone had this issue before but found nothing...

Can someone please advise if there is an easy way for me to do this or an alternate route I may need to take?

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/ab8b0bfc-7d47-4b6c-9047-17fd1e008db5%40googlegroups.com.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPCf-y5%3DSc5HTrEQ1r9H_Y1P_d7Z5YLLOmPwiRcgEV_EJnaGLw%40mail.gmail.com.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAP5HUWpkierKyVO8Rf-pv2vx9S2gsEYedRQDkvoOYzD9GpWeZQ%40mail.gmail.com.

No comments:

Post a Comment