structured import rules to be 'relative'
This commit is contained in:
parent
c22255b2e5
commit
d974da6724
|
@ -5,7 +5,7 @@ app = Flask(__name__)
|
|||
app.config['SQLALCHEMY_DATABASE_URI'] = "sqlite:///static/db/database.db"
|
||||
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
|
||||
|
||||
from core.models import db
|
||||
from .models import db
|
||||
db.init_app(app)
|
||||
|
||||
from core import routes
|
||||
from . import routes
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
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 core.MessageHandler import MessageHandler # Get simple message processor
|
||||
from .models import Table # Get db models
|
||||
from .MessageHandler import MessageHandler # Get simple message processor
|
||||
|
||||
|
||||
# Python imports
|
||||
|
|
Loading…
Reference in New Issue