Refactored django support.