Well, I did not understand the concept of djt2 correctly. Therefore, I had to do this with a conditional statement. And now it works fine with django Manager.raw () and returns nice tables.
{% load render_table from django_tables2%} <link rel="stylesheet" href="{{ STATIC_URL }}django_tables2/themes/paleblue/css/screen.css" /> {% if result%} {%render_table result%} {%endif%}
`
source share