This repository has been archived by the owner on Apr 24, 2024. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The changes introduced here allow for creating entity relationship diagrams via django-extensions and graphviz.
This may be helpful in the early stages of the implementation of the new design, as we look at things such as the field specification and harmonisation of field names / attrributes between FE and BE.
The intention is not to merge this to the
main
branch, but rather to serve as reference. To be closed when no longer needed.To generate a diagram:
checkout the
diagrams
branch and build the Docker imagesgit checkout diagrams && \ fab build
Spin up the containers, and SSH into the
web
containerfab start && fab sh
In the container, run
What we are doing above is generating a diagram for specified Django apps on the project. Feel free to modify the above command as you please. See https://django-extensions.readthedocs.io/en/latest/graph_models.html#example-usage for usage examples.
Note
If, for some reason, you don't see the generated file on your computer (this happened to me), then copy it from the docker container to the local filesystem. Here's what I did