2005/12/27, James Bennett <[EMAIL PROTECTED]>:
>
> 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.
>
If there is a handy command in django-admin.py, I think, it may be
better than everyone who need the function has to write his own shell
file to do the same things. It just a suggestion, I think it can be
helpful for someone like me -- a lazy man.

--
I like python!
My Blog: http://www.donews.net/limodou
NewEdit Maillist: http://groups.google.com/group/NewEdit

Reply via email to