revert app_factory to old version. The new version has been moved to django. This version remains for backwards compatibility