I have a project named 'checkbook' with a single application named
'ledger', using sqlite3 for a database.

The ledger application has two models, 'account' and 'transaction'.

In the ledger subdirectory I have a directory named 'sql', which
contains a file named 'account.sql'.

When I run 'python manage.py syncdb' for the first time from the
checkbook project directory I am prompted for a username / email /
password for the auth system, and the initial data I provided in the
'account.sql' file is loaded correctly into the database.

If I then add additional data to 'account.sql', is there a way to re-
load this updated initial data?

Right now I am stuck deleting the database file, and re-running
'syncdb'.

Should I be using a different mechanism to load initial data? Is that
what 'loaddata' is for?

Thanks in advance,
-cjl


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

Reply via email to