python3
from red.master import db, create_app db.create_all(app=create_app())
from red.master import db, create_app db.drop_all(app=create_app()) db.create_all(app=create_app())
sudo apt-get install -y python3 sudo apt-get install -y python3-pip sudo apt-get install -y python3-mysqldb sudo apt-get install libmysqlclient-dev
sudo pip3 install mysqlclient
pip3 install -r requirements.txt
python3 myapp.py
session.using_bind('slave').query(User).filter_by(id=1).first()
Create a POT File
pybabel extract -F ../babel.cfg -o messages.pot .
Cteate PO file from it, Then change the texts
pybabel init -i messages.pot -d translations -l es
Copile the files to generete binary file (mo)
pybabel compile -d translations