django-extensions
Django Packages #
- tags
- Django
Important Features #
Create UML class diagram from models #
Generate (and view) a graphviz graph of app models:
python manage.py graph_models -a -o myapp_models.pngonly specific apps
python manage.py graph_models app -g -o myapp_models.pngonly specific apps excluding certain models
python manage.py graph_models api -X ModelWithTimeStamp -g -o flyers_models.png
args explanation #
-o is output -g group-I Mode1, Mode2 (To include models) -X Model1, Model2 (To exclude models) -a (all apps )
show URLs #
Produce a tab-separated list of (url_pattern, view_function, name) tuples for a project:
python manage.py show_urls
Check templates for rendering errors:
python manage.py validate_templates
Run the enhanced django shell:
python manage.py shell_plus
Run the enhanced django runserver, (requires Werkzeug install):
python manage.py runserver_plus
All features #
https://django-extensions.readthedocs.io/en/latest/