cmdb/cmdb-api/extensions.py

16 lines
278 B
Python

# encoding=utf-8
from flask.ext.mail import Mail
from flask.ext.sqlalchemy import SQLAlchemy
from flask.ext.cache import Cache
from flask.ext.celery import Celery
__all__ = ['mail', 'db', 'cache', 'celery']
mail = Mail()
db = SQLAlchemy()
cache = Cache()
celery = Celery()