Made some convenience changes in models and created a Dockerfile for deployment. Also changed the configs to be compatible for custom variables in Docker
9 lines
285 B
Python
9 lines
285 B
Python
from app import create_app, db
|
|
from app.models import *
|
|
|
|
app = create_app()
|
|
|
|
@app.shell_context_processor
|
|
def make_shell_context():
|
|
return {'db': db, 'User': User, 'Bought': Bought, 'Item': Item,
|
|
"LoginToken": LoginToken, "Establishment": Establishment, "Receipt": Receipt} |