add bot func

This commit is contained in:
2022-12-17 15:08:19 +03:00
parent 176c0775b7
commit 2015338c74
3 changed files with 107 additions and 0 deletions

15
app.py Normal file
View File

@@ -0,0 +1,15 @@
from flask import Flask, render_template, request
import logging
logging.basicConfig(filename='app.log', encoding='utf-8', level=logging.DEBUG)
from models import db, ArtDavl
def create_app():
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///app.db'
app.secret_key ='6523e58bc0eec42c31b9635d5e0dfc23b6d119b73e633bf3a5284c79bb4a1ede'
db.init_app(app)
return app