#!/usr/bin/env python

from project import views
from project import models
from project import config
from project.database import init_db

app = views.app

# Return an App
if __name__ == "__main__":
    app.run(host=config.HOST, port=config.PORT, debug=config.DEBUG)

#!/usr/bin/env python

from project import views
from project import models
from project import config

app = views.app

# Return an App
if __name__ == "__main__":
    app.run(host=config.HOST, port=config.PORT, debug=config.DEBUG)

Fix bug, run ok.