#!/usr/bin/env python

import os
from app import create_app
from dmutils import init_manager

application = create_app(
    os.getenv('DM_ENVIRONMENT') or 'development'
)
manager = init_manager(application, 5004, ['./app/content/frameworks'])

if __name__ == '__main__':
    manager.run()

import os

from app import create_app


application = create_app(os.getenv("DM_ENVIRONMENT") or "development")

Remove Flask-Script manager from application.py