from flask import Flask
from flask_bootstrap import Bootstrap

from app.config import DevConfig

# Initializing the application
app = Flask(__name__, instance_relative_config=True)

# Setting up configuration
app.config.from_object(DevConfig)
app.config.from_pyfile('config.py')

#Initializing Flask Extensions
bootstrap = Bootstrap(app)

from app import views
from app import error