Hi,

It's relatively simple. Just generate proper input file for graphwiz or
networkx to consume call that tool for input file and create output file.
Then render output file via view to your page.


pe 6. huhtikuuta 2018 klo 18.31 <shawn...@gmail.com> kirjoitti:

> Hi, thank you for your help.
> But I think this link cannot really solve my problem. My question is
> actually how to visualize the data of my model, rather than visualize the
> model.
>
>
> <https://lh3.googleusercontent.com/-jZWy8k2MRIc/WseSb2jmNKI/AAAAAAAAAGE/Tl4MQsuE09URCUFOvd_6FaUhpEe3VT5UACLcBGAs/s1600/WechatIMG9.jpeg>
> The situation is, As you can see, the Formula detail table include the
> reactants that participates in the reaction, now I want to add a function
> to this page, like add a button at the right side. And when I click on the
> button, a graph could be generated automatically. The graph should looks
> like '10fthf5glu_m(in a circle) -> 10fthf5glu_c(in a circle)' I know this
> function should be done by using Graphviz and Networkx, but how?
>
> 在 2018年4月6日星期五 UTC+2上午10:04:31,Christian Ledermann写道:
>>
>> https://django-extensions.readthedocs.io/en/latest/graph_models.html
>>
>> On 5 April 2018 at 19:10,  <shaw...@gmail.com> wrote:
>> > Hi everyone,
>> > If I have three models and I successfully displayed the data using
>> templates
>> > and views, how can I use graphviz or networkx to draw graph using the
>> data
>> > that I displayed?
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> Groups
>> > "Django users" group.
>> > To unsubscribe from this group and stop receiving emails from it, send
>> an
>> > email to django-users...@googlegroups.com.
>> > To post to this group, send email to django...@googlegroups.com.
>> > Visit this group at https://groups.google.com/group/django-users.
>> > To view this discussion on the web visit
>> >
>> https://groups.google.com/d/msgid/django-users/0dc4b526-9643-4096-9726-6277c807b33b%40googlegroups.com.
>>
>> > For more options, visit https://groups.google.com/d/optout.
>>
>>
>>
>> --
>> Best Regards,
>>
>> Christian Ledermann
>>
>> Newark-on-Trent - UK
>> Mobile : +44 7474997517
>>
>> https://uk.linkedin.com/in/christianledermann
>> https://github.com/cleder/
>>
>>
>> <*)))>{
>>
>> If you save the living environment, the biodiversity that we have left,
>> you will also automatically save the physical environment, too. But If
>> you only save the physical environment, you will ultimately lose both.
>>
>> 1) Don’t drive species to extinction
>>
>> 2) Don’t destroy a habitat that species rely on.
>>
>> 3) Don’t change the climate in ways that will result in the above.
>>
>> }<(((*>
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/48cff3a7-d877-424b-9492-f4d4d34daffe%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/48cff3a7-d877-424b-9492-f4d4d34daffe%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHn91ofeW9KmQ%2BU-B0gn_FFbWWNQTMm0HKcqc7G9ttmDDKuRZw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to