import os
from flask import Flask
# from flask_sqlalchemy import SQLAlchemy
# from flask_migrate import Migrate


app = Flask(__name__)

# Often people will also separate these into a separate config.py file
app.config['SECRET_KEY'] = 'mysecretkey'
# basedir = os.path.abspath(os.path.dirname(__file__))
# app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///' + os.path.join(basedir, 'data.sqlite')
# app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False

# db = SQLAlchemy(app)
# Migrate(app,db)
#
# # NOTE! These imports need to come after you've defined db, otherwise you will
# # get errors in your models.py files.
# ## Grab the blueprints from the other views.py files for each "app"
# from myproject.puppies.views import puppies_blueprint
# from myproject.owners.views import owners_blueprint
#
# app.register_blueprint(owners_blueprint,url_prefix="/owners")
# app.register_blueprint(puppies_blueprint,url_prefix='/puppies')
# def create_app():
#   app = Flask(__name__)
#   Bootstrap(app)
#   return app
