1. Jacob Smullyan
  2. django-viewutil


django-viewutil /

Filename Size Date modified Message
64 B
315 B
677 B
1.3 KB
441 B
526 B

It is common for django views to require the same import boilerplate over and over again, with slight variations. Most of the things I find I need to import regularly are in djview, so I can get them all with a single "from djview import *".

I also include several utility functions that I think we all tend to recreate in one form or another, and a decorator for json views that handles date formatting and has a custom encode hook.