Can't load JSON data to jQuery sqlalchemy-datatable Can't load JSON data to jQuery sqlalchemy-datatable flask flask

Can't load JSON data to jQuery sqlalchemy-datatable


Try and pass query() without attributes (i.e. your mapped class) and use select_from(). But above all, you must avoid to append all() at the end. Datatables, as far I can understand, accepts sqlalchemy objects and does the job for you.In your case, this should work:

query = db.session.query().select_from(Feature)

Except for this line, your code should run without problems.