phytopi/phytopi/__init__.py
2019-01-31 14:49:46 +01:00

16 lines
386 B
Python

import os
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_migrate import Migrate
from phytopi.config import Config
# from phytopi.camera.camera_pi import Camera
app = Flask(__name__, instance_relative_config=True)
app.config.from_object(Config)
db = SQLAlchemy(app)
migrate = Migrate(app, db)
# camera = Camera(app=app)
from phytopi import routes, models