Another option, which may or may not be acceptable, is to write an SQL
script containing the necessary INSERTs and run it using your
database's command line client, after syncdb has run.

I do this because syncdb seems to break when running
myapp/sql/mymodel.sql files when they contain newlines (no idea why).
Plus, I have to do things like create views and stored procedures,
which are very database-specific things anyway.

I automate the whole process with a shell script that drop-creates the
database, runs syncdb, then runs the view- and stored
procedure-creating script.

- mikah


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to