structured import rules to be 'relative'

This commit is contained in:
Maxim Stewart 2019-12-29 16:33:13 -06:00
parent c22255b2e5
commit d974da6724
2 changed files with 5 additions and 5 deletions

View File

@ -5,7 +5,7 @@ app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = "sqlite:///static/db/database.db" app.config['SQLALCHEMY_DATABASE_URI'] = "sqlite:///static/db/database.db"
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
from core.models import db from .models import db
db.init_app(app) db.init_app(app)
from core import routes from . import routes

View File

@ -1,8 +1,8 @@
from flask import request, render_template from flask import request, render_template
from core import app, db # Get from __init__ from . import app, db # Get from __init__
from core.models import Table # Get db models from .models import Table # Get db models
from core.MessageHandler import MessageHandler # Get simple message processor from .MessageHandler import MessageHandler # Get simple message processor
# Python imports # Python imports