On 7/21/06, Seth Buntin <[EMAIL PROTECTED]> wrote: > Is there a way to create data from a model when running syncdb or > something? I have a couple of tables that hold the same data and when > I during development I sometime reset my data can I put this in the > model or something and it create the data when the tables are created?
Hey Seth, Check out the "initial SQL files" hook -- http://www.djangoproject.com/documentation/model_api/#providing-initial-sql-data Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---