from flask.ext.script import Manager
from flask.ext.celery import install_commands as install_celery_commands

from impschedules import app, db

db.create_all()
manager = Manager(app)
install_celery_commands(manager)

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

#!/usr/bin/env python

from flask.ext.script import Manager, Server

import impschedules

def run():
    impschedules.db.create_all()
    manager = Manager(impschedules.app)
    server = Server(host='0.0.0.0')
    manager.add_command("runserver", server)
    manager.run()

if __name__ == "__main__":
    run()

Tidy up manage.py, make executable