Django Flowchart Model

Does anyone know of a Django application for designing and storing flowcharts in a database? After searching for options for โ€œDjango flowcharts,โ€ I found only Django internal design flowcharts, not anything about creating or storing flowcharts in Django webapp.

As asked in a similar question , I found some impressive Javascript and jQuery-based libraries for the flowchart based on the browser design, but nothing was saved on the server side.

+4
source share
3 answers

I wrote an application that stores and monitors the state of machines in Django 1.2:

https://bitbucket.org/canassa/zinaflow

It uses a permissions model for each object to manage transitions and GenericForeignKeys to bind the state machine to any model of your application. With permissions for each object, you can assign a Django user for each transition.

Depending on what you need to do, this application may be redundant for you. But reading the source code may give you some ideas on how to implement the application yourself.

+1
source

Why couldn't you do it yourself? The behavior and presentation has already been implemented in several truly impressive JavaScript libraries that you referenced, now all that remains to be done is to store the models in the database for your favorite choice that you want to save through Django.

There is a library that implements a Modified pre-order tree traversal at the model level, which, I am sure, will be useful for you to store the logical relationships between flowchart elements and other presentation data, such as coordinates, shape, its transformations and other visual properties, which can be easily saved nearby.

I am sure that if you think that you can quickly complete it; hell, even the likelihood that there are many people who need the same thing that would make it even more useful if you hadn't designed it just for yourself. This seems like a good candidate for an OS Django application.

+1
source

I am not aware of an existing application that does this, but if you want to start developing your own good place to start, you will study the code for GraphModels , a team from an excellent django extension project. This is the django manage.py extension, which creates database diagrams on models using graphviz.

0
source

Source: https://habr.com/ru/post/1386375/


All Articles