from flask import Flask
from pymongo import MongoClient
app = Flask(__name__)

@app.route("/")
def hello():
    mongo = MongoClient('database')
    dbnames = mongo.database_names()
    return "Hello pymongo! dbnames: {}".format(dbnames)

if __name__ == "__main__":
    # Only for debugging while developing
    app.run(host='0.0.0.0', debug=True, port=80)

f446cceb82c3e621e42b4b785f39cc7d9f35dfab
<mask token>


@app.route('/')
def hello():
    mongo = MongoClient('database')
    dbnames = mongo.database_names()
    return 'Hello pymongo! dbnames: {}'.format(dbnames)


<mask token>

<mask token>


@app.route('/')
def hello():
    mongo = MongoClient('database')
    dbnames = mongo.database_names()
    return 'Hello pymongo! dbnames: {}'.format(dbnames)


if __name__ == '__main__':
    app.run(host='0.0.0.0', debug=True, port=80)

<mask token>
app = Flask(__name__)


@app.route('/')
def hello():
    mongo = MongoClient('database')
    dbnames = mongo.database_names()
    return 'Hello pymongo! dbnames: {}'.format(dbnames)


if __name__ == '__main__':
    app.run(host='0.0.0.0', debug=True, port=80)

from flask import Flask
from pymongo import MongoClient
app = Flask(__name__)


@app.route('/')
def hello():
    mongo = MongoClient('database')
    dbnames = mongo.database_names()
    return 'Hello pymongo! dbnames: {}'.format(dbnames)


if __name__ == '__main__':
    app.run(host='0.0.0.0', debug=True, port=80)

from flask import Flask
from pymongo import MongoClient
app = Flask(__name__)

@app.route("/")
def hello():
    mongo = MongoClient('database')
    dbnames = mongo.database_names()
    return "Hello pymongo! dbnames: {}".format(dbnames)

if __name__ == "__main__":
    # Only for debugging while developing
    app.run(host='0.0.0.0', debug=True, port=80)
