Skip to content
Snippets Groups Projects
Verified Commit 3d704820 authored by Maarten de Waard's avatar Maarten de Waard :angel:
Browse files

try to add a Migrate call so we can migrate I hope

parent 2564f3aa
No related branches found
No related tags found
1 merge request!55Resolve "Merge dashboard and dashboard-backend repos"
from flask import Flask, jsonify
from flask_jwt_extended import JWTManager
from flask_cors import CORS
from flask_jwt_extended import JWTManager
from flask_migrate import Migrate
from jsonschema.exceptions import ValidationError
from werkzeug.exceptions import BadRequest
from flask_sqlalchemy import SQLAlchemy
......@@ -46,11 +47,9 @@ app.config["SQLALCHEMY_DATABASE_URI"] = SQLALCHEMY_DATABASE_URI
#db = SQLAlchemy()
db.init_app(app)
# Late beceuse of circular import
##
Migrate(app, db)
app.logger.setLevel(logging.INFO)
app.logger.setLevel(logging.INFO)
app.register_blueprint(api_v1)
app.register_blueprint(web)
......
......@@ -24,8 +24,6 @@ import ory_kratos_client
# Flask
from flask import Flask, abort, redirect, render_template, request
from flask.cli import AppGroup
from flask_migrate import Migrate
from flask_sqlalchemy import SQLAlchemy
from ory_kratos_client.api import v0alpha2_api as kratos_api
from areas import cli
......
from flask_sqlalchemy import SQLAlchemy
db = SQLAlchemy()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment