0
0
Fork 0
mirror of https://github.com/alerta/alerta.git synced 2025-02-11 00:12:26 +00:00
alerta_alerta/alerta/app/__init__.py
2014-03-19 21:59:20 +00:00

25 lines
491 B
Python

from flask import Flask
from alerta.common import config
from alerta.common import log as logging
from alerta.common.amqp import Messaging, FanoutPublisher
from alerta.app.database import Mongo
Version = '3.0.0'
LOG = logging.getLogger(__name__)
CONF = config.CONF
config.parse_args(version=Version)
logging.setup('alerta')
app = Flask(__name__)
app.config.from_object(__name__)
db = Mongo()
mq = Messaging()
notify = FanoutPublisher(mq.channel)
import views
import management.views