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/b6d7e812-ca0f-4beb-830a-e6782fcf26d9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to