Create tables
This commit is contained in:
@@ -2,7 +2,8 @@ from flask import Flask, jsonify
|
||||
from dotenv import load_dotenv
|
||||
from db import db
|
||||
|
||||
from models import User
|
||||
from models import *
|
||||
|
||||
|
||||
def create_app():
|
||||
load_dotenv()
|
||||
@@ -15,6 +16,9 @@ def create_app():
|
||||
|
||||
db.init_app(application)
|
||||
|
||||
# Create all tables
|
||||
db.create_all()
|
||||
|
||||
@application.route('/')
|
||||
def hello_world():
|
||||
return 'Hello World!'
|
||||
|
Reference in New Issue
Block a user