diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 2bd9e7e..eea8389 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -23,3 +23,9 @@ To run tests locally, just launch: ``` poetry run python manage.py test ``` + +## Generate the SQL schema image + +``` +poetry run python manage.py graph_models -a -X ContentType,LogEntry,AbstractUser,AbstractBaseSession,Group,Permission,Success,Failure,Task,Schedule,OrmQ,User,Session -o docs/2024-09-22_price-schema.png +``` diff --git a/config/settings.py b/config/settings.py index 54f6dbe..62dfc52 100644 --- a/config/settings.py +++ b/config/settings.py @@ -244,7 +244,8 @@ MIDDLEWARE += ["debug_toolbar.middleware.DebugToolbarMiddleware"] -# Shell Plus (django-extensions) +# Django-extensions +# https://django-extensions.readthedocs.io/ # ------------------------------------------------------------------------------ SHELL_PLUS = "ipython" diff --git a/docs/2024-09-22_price-schema.png b/docs/2024-09-22_price-schema.png new file mode 100644 index 0000000..cf7a1d8 Binary files /dev/null and b/docs/2024-09-22_price-schema.png differ