Re: Howto execute custom SQL from the command line

2008-03-27 Thread Thomas Guettler
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

Re: Howto execute custom SQL from the command line

2008-03-27 Thread Amit Ramon
* Tourneur Henry-Nicolas <[EMAIL PROTECTED]> [2008-03-27 08:27 +0100]: > > On Wednesday 26 March 2008 17:25:18 Amit Ramon wrote: > > You can do that easily enough without django... > > one way is to do: > > mysql -u -p < file.sql > > > > the other is to go into mysql and there do: > > \. file.sq

Re: Howto execute custom SQL from the command line

2008-03-27 Thread Tourneur Henry-Nicolas
On Wednesday 26 March 2008 17:25:18 Amit Ramon wrote: > You can do that easily enough without django... > one way is to do: > mysql -u -p < file.sql > > the other is to go into mysql and there do: > \. file.sql > > You can open a mysql shell with: > manage.py dbshell > > I prefer the second way b

Re: Howto execute custom SQL from the command line

2008-03-26 Thread Amit Ramon
You can do that easily enough without django... one way is to do: mysql -u -p < file.sql the other is to go into mysql and there do: \. file.sql You can open a mysql shell with: manage.py dbshell --- Amit * Tourneur Henry-Nicolas <[EMAIL PROTECTED]> [2008-03-25 17:32 +0100]: > > Hello, >

Howto execute custom SQL from the command line

2008-03-25 Thread Tourneur Henry-Nicolas
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 li