diff --git a/README.md b/README.md index 50ae3b08..ce24aea6 100644 --- a/README.md +++ b/README.md @@ -1441,7 +1441,7 @@ archivebox init --setup -#### Make migrations or enter a django shell +#### Make DB migrations, enter Django shell, or view ORM models graph
Click to expand... @@ -1454,9 +1454,16 @@ cd archivebox/ cd path/to/test/data/ archivebox shell 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`) +ArchiveBox ORM models relatinoship graph + https://stackoverflow.com/questions/1074212/how-can-i-see-the-raw-sql-queries-django-is-running