django boilerplate implementation for Python 3+ and django 1.7 onwards