# -*- coding: utf-8 -*-

from flask_admin import Admin
from flask.ext.sqlalchemy import SQLAlchemy
from flask import Flask

app = Flask(__name__)
app.config.from_object('config')
db = SQLAlchemy(app)

admin = Admin(app, name='Nitrate', template_mode='bootstrap3')


# Register blueprints

from nitrate.plans.views import mod as plan_module
app.register_blueprint(plan_module)

from nitrate.cases.views import mod as case_module
app.register_blueprint(case_module)

