Openchat Flask website http://openchat.pythonanywhere.com/
python -m venv .venv
source .venv/bin/activate
python -m pip install -r requirements.py
python -m flask create-database
python -m flask run
flask will auto run wsgi.py
or app.py
Initialize database/migration config
python -m flask db init
Create migrate
python -m flask db migrate -m \"Initail migrattion\"
Upgrade database
python -m flask db upgrade
flask -e .env shell
from chat.models import User
from chat import db
db.session.add(User(username="admin", password="Password12"))
db.session.add(User(username="admin", password="Password12"))
db.session.commit()