Graph Any Django Model

June 26, 2013 by Alex Lovell-Troy

In my django applications, I often find myself wanting to graph events per day. Take signups using the standard contrib.auth User model for example. It’s helpful to know how many people signed up each day last month and the month before. A graph is a quick way to get an impression of how my application is doing.

An example graph image

I wrote a combination of python and javascript to make these graphs with flotcharts for any django model.

Here’s the gist:

© 2018 | Follow on Twitter