django

Run dev server at port 8001

python3 manage.py runserver 8001

Inspect DB

python manage.py inspectdb

Get a Shell on DB

python manage.py dbshell
.tables
select * from <table>

View Schema

.schema <table>

Update models

python manage.py makemigrations <classmodel>
python manage.py migrate

Make Translation Messages

python manage.py makemessages -l en -l pt_BR

Compile Translations

python manage.py compilemessages
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9