Tourneur Henry-Nicolas schrieb: > Hello, > > At the installation stage of the software (Django bases, of course) I'm > developing, I have to insert data in a database. Is there any easy way to > tell django to execute the SQL directives contained in a .sql file ? > > I tried using manage.py but I don't know the good options. > So I would like to do sth like : > ./manage.py action file.sql > That is what I was trying to do. > > You can do this (at least on unix like systems):
echo 'SELECT * from app_mytable;' | ./manage.py dbshell or cat file.sql | ./manage.py dbshell -- Thomas Guettler, http://www.thomas-guettler.de/ E-Mail: guettli (*) thomas-guettler + de --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---