Tuesday, July 29, 2014

running script in django database

Hello,
I made a library application using django 1.6. currently I only need to
populate the database. at the beginning, it is easier to write the
information in a csv file and import it using a script.

the script is running fine if I use manage.py shell and import the
necessary file and call the necessary function. however, I want to make
the script run from the system commandline rather than from the python
interpreter since it is easier to pass arguments to it. I could not find
a way in the manage.py documentation page.

Is it possible?

thank you,
Mohammad

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/53D86E73.9060806%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment