I'm working with Django and django-tables2 to make a nice representation of sql queries in a web-interface. I have a legacy sql code which is very-very complicated to define it throught standard models.py.
The question is: how can i render a table from custom sql query using django-tables2?
The docs on populating a table with data show how you can create a table with a list of dictionaries as the input data.
Assuming your custom sql query returns data in a similar format, you should be able to use the same approach.
Well, i didn't get the conception of djt2 right. So i should've rendered it using the conditional operator. And now it works perfectly with django's Manager.raw() and returns nice tables.
`