removing web gui

This commit is contained in:
Faiz Ahmed
2021-07-17 11:10:40 -04:00
parent fae35f057a
commit e285697f2d
42 changed files with 4 additions and 2333 deletions

17
run.py Normal file
View File

@@ -0,0 +1,17 @@
from app import app
from app import db, bcrypt
from app.models import User
from os import path
'''
if path.exists("app.config.app.db") is False:
db.create_all()
try:
hashed_password = bcrypt.generate_password_hash(DEFAULT_PASS).decode('utf-8')
user = User(username=DEFAULT_USER, password=hashed_password)
db.session.add(user)
db.session.commit()
except:
print("Some error in setting up.")
'''
if __name__ == "__main__":
app.run(debug=True)