django refactored