support Django, refactor "contrib/framework"