#!/usr/bin/env python

import os

# import jinja2

from app import create_app
from dmutils import init_manager

application = create_app(
    os.getenv('DM_ENVIRONMENT') or 'development'
)
application.jinja_options = {
    'extensions': [
        'jinja2.ext.with_'
    ]
}

# Sadly can't enable this yet, but we should work towards it...
# application.jinja_env.undefined = jinja2.StrictUndefined

manager = init_manager(application, 5003, ['./app/content/frameworks'])

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

@@ -1,114 +1,42 @@
-#!/usr/bin/env python%0A%0Aimport os%0A%0A# import jinja2%0A%0Afrom app import create_app%0Afrom dmutils import init_manager
+import os%0A%0Afrom app import create_app%0A
 %0A%0Aap
@@ -58,21 +58,16 @@
 ate_app(
-%0A    
 os.geten
@@ -68,17 +68,17 @@
 .getenv(
-'
+%22
 DM_ENVIR
@@ -87,15 +87,15 @@
 MENT
-'
+%22
 ) or 
-'
+%22
 deve
@@ -105,336 +105,7 @@
 ment
-'%0A)%0Aapplication.jinja_options = %7B%0A    'extensions': %5B%0A        'jinja2.ext.with_'%0A    %5D%0A%7D%0A%0A# Sadly can't enable this yet, but we should work towards it...%0A# application.jinja_env.undefined = jinja2.StrictUndefined%0A%0Amanager = init_manager(application, 5003, %5B'./app/content/frameworks'%5D)%0A%0Aif __name__ == '__main__':%0A    manager.run(
+%22
 )%0A

Remove Flask-Script manager from application.py