19 lines
461 B
Python
19 lines
461 B
Python
import os
|
|
from datetime import datetime
|
|
|
|
from dotenv import load_dotenv, find_dotenv
|
|
from flask import Flask
|
|
from flask import request
|
|
from flask_sqlalchemy import SQLAlchemy
|
|
from flask_migrate import Migrate
|
|
|
|
load_dotenv(find_dotenv())
|
|
|
|
app = Flask(__name__)
|
|
app.config['SQLALCHEMY_DATABASE_URI'] = os.getenv("SQLALCHEMY_DATABASE_URI")
|
|
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
|
|
db = SQLAlchemy(app)
|
|
migrate = Migrate(app, db)
|
|
|
|
from ki import module
|