mirror of
https://github.com/alerta/alerta.git
synced 2025-01-27 02:28:49 +00:00
16 lines
276 B
Python
16 lines
276 B
Python
from flask import Flask
|
|
from flask.ext.pymongo import PyMongo
|
|
|
|
# Default configuration
|
|
MONGO_HOST = 'localhost'
|
|
MONGO_PORT = 27017
|
|
MONGO_DBNAME = 'monitoring'
|
|
|
|
app = Flask(__name__)
|
|
app.config.from_object(__name__)
|
|
mongo = PyMongo(app)
|
|
|
|
|
|
import views
|
|
import management.views
|
|
|