Saturday, May 21, 2016


It would be nice if there were a sqlalchemy/flask equivalent to this:

The equivalent might use sqlalchemy_utils for its generic relationships:

Thursday, May 19, 2016

Modified Preorder Tree Traversal

This was a great explanation of Modified Preorder Tree Traversal (or MPTT):

A common use-case for MPTT is categorization data, like with the way django-oscar uses django-mptt:

Sunday, May 8, 2016

Datatables - Uncaught TypeError: Cannot read property 'style' of undefined

If you see this error in datatables: "Uncaught TypeError: Cannot read property 'style' of undefined"

It's likely that you're missing a header column in your table. Make sure you have the same number of <th> elements as items in the "columns" section of your datatables initialization.

Select2 Replacement

This selectize.js library looks like a good replacement for Select2:

Wednesday, May 4, 2016

Javascript Data Tables