Friday, August 14, 2020

django extensions

 There are some useful commands in the django extension,

1. Validate templates. We should execute this command line when build project as auto test.

python manage.py validate_templates
 

2. Check your SQL

python manage.py shell_plus --print-sql
 
3. Your database schema. Need to install c++.
 python manage.py graph_models -a -o myapp_models.png

No comments: