Update README.md

This commit is contained in:
Nick Sweeting 2024-02-22 01:23:51 -08:00 committed by GitHub
parent 113895277d
commit 9026726a00
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1441,7 +1441,7 @@ archivebox init --setup
</details> </details>
#### Make migrations or enter a django shell #### Make DB migrations, enter Django shell, or view ORM models graph
<details><summary><i>Click to expand...</i></summary> <details><summary><i>Click to expand...</i></summary>
@ -1454,9 +1454,16 @@ cd archivebox/
cd path/to/test/data/ cd path/to/test/data/
archivebox shell archivebox shell
archivebox manage dbshell archivebox manage dbshell
# generate a graph of the ORM models
brew install graphviz
pip install pydot graphviz
archivebox manage graph_models -a -o orm.png
open orm.png
``` ```
(uses `pytest -s`) <img src="https://github.com/ArchiveBox/ArchiveBox/assets/511499/dc3e9f8c-9544-46e0-a7f0-30f571b72022" width="600px" alt="ArchiveBox ORM models relatinoship graph"/>
https://stackoverflow.com/questions/1074212/how-can-i-see-the-raw-sql-queries-django-is-running https://stackoverflow.com/questions/1074212/how-can-i-see-the-raw-sql-queries-django-is-running
</details> </details>