On 12/26/05, limodou <[EMAIL PROTECTED]> wrote:
> May be sqlite can do like that, but other databases can not just
> remove the database file. And this appoach will destroy all the
> tables, but what I want may be just a single app, not the whole
> project. So if there is not a "reinstall"(or reinstallapp) command I
> still need to run something like: django-admin.py sqlreset appname |
> psql dbname

I've just always considered sqlite to be a really handy DB for
development use because of things like this; there's no need to muck
about with running your own database server (though for later stages
of testing I do have MySQL and Postgres on a development box), with
creating databases and granting access, etc., and it's often far
easier to delete an sqlite file and re-create it (just put the
appropriate calls to django-admin.py or, better, manage.py on separate
lines in a shell script, and you can completely reset in a matter of
seconds) than to drop database tables and figure out which ones need
to be re-created or, worse, to blow away an entire MySQL or Postgres
database and re-create it with appropriate permissions.

> What you said just suit for some situation.

Yup. That was kind of my point :)


--
"May the forces of evil become confused on the way to your house."
  -- George Carlin

Reply via email to