Closed ddahan closed 1 year ago
Sorry I wasn't answering to this issue for so long. Thank you so much for sharing with me plantuml URL feature and this code sample. I released 0.3.0 version with this feature.
Hi @sen-den, I tried to use the new url option but I get this error:
manage.py generate_puml: error: unrecognized arguments: --url
I'm using the last PyPI version (0.41). Did I miss something? Thanks.
If you go to this URL, you can see that plantuml allows users to generate diagrams from a URL (or generate URLs from the schemas). To do this, the whole diagram is encoded in a specific format that can be injected in the URL, as explained here.
After having generated the file using django-model2puml extension, here is the working code (from a custom Django command) I wrote to do this:
This generates full usable URLs like this one.
This is very useful as I just need to click to the generated URL to see the schema in my browser. And I was thinking this could be added directly to the extension. For example, running :
would generate and return this url to the user .
puml
file creation would become an option, as you may need the URL only, the file only, or both the URL and file.What do you think?