update manage.py for app factory