app.py 193 B

1234567
  1. from flask import Flask
  2. from flask_pymongo import PyMongo
  3. app = Flask(__name__)
  4. app.secret_key = "secret key"
  5. app.config["MONGO_URI"] = "mongodb://localhost:27017/roytuts"
  6. mongo = PyMongo(app)