some snippets and useful tools for django