Dear Cictani:

Thank you for your detailed information.

Just to be clarified, I need to mention that in one reaction, one 
stoichiometry belongs to only one metabolites. But one metabolite might 
involves in multiple reactions.
For example: a + 2b +c -> c + 3d(the number before each letter is called 
stoichiometry)
and also, a + b -> d + e + f
also, a + c + d -> h + j + k

so, as you see, a participates in three reactions, and c not only functions 
as reactant(which is, on the left side of equation), but also functions as 
production(right side)

So, after I clarified this situation, is your method, which to create 
another class, still working?

Sorry to bother you again and thank you for your patience!

Best regards,
Shawn

在 2018年3月26日星期一 UTC+2上午6:29:05,Cictani写道:
>
>
> Hi,
>
> yes you can create a new python file in your app folder in order to run it 
> you can enter django shell:
>
> python manage.py shell
>
> Let's say your app is called 'chem' and your file is called 'helpers.py' 
> in there you have defined a function called: 'convert_reactions_meta'.
>
> Then you can run ist by
>
> from chem.helpers import convert_reactions_meta
> convert_reactions_meta()
>
> Django will automatically create all missing tables if you run
>
> python manage.py makemigrations
> python manage.py migrate
>
> You first have to do the database migration than write the script which 
> converts the data.
>
>
>

-- 
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/3cbeaf54-09b0-49d2-b5f6-8a848c22b77c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to