Is there a preferred way to feed sample data to models? It would help in
this business of recreating databases over and over.

El lun, 26-12-2005 a las 21:07 -0600, James Bennett escribió:
> On 12/26/05, limodou <[EMAIL PROTECTED]> wrote:
> > I suggest that there may be a admin command just like: django-admin.py
> > reinstall app
> > to do the things like: django-admin.py sqlreset appname | psql dbname
> >
> > I think this will be helpful in developing period.
> 
> I'd be against it, just because I don't think there should ever be an
> automated script that blows away an existing DB. And as for speed,
> well, most of the time when I'm developing like that and changing
> models a lot I just use sqlite and delete the DB file when I update
> the model, then recreate it quickly with django-admin.py or manage.py.
> Just as easy that way.
> 
> 
> --
> "May the forces of evil become confused on the way to your house."
>   -- George Carlin
-- 
Marcos Sánchez Provencio <[EMAIL PROTECTED]>

Reply via email to