On Mon, 2007-08-13 at 16:31 -0500, Adrian Holovaty wrote:
> I'm proposing a "--with-fixture" flag to django-admin.py, so that you
> could do something like this:
> 
>     django-admin.py runserver --with-fixture=mydata.json
> 
> With this command, Django would:
> 
> * Delete the test database when the development server is stopped.
> 
I'm in favor of everything but this part. I find myself wanting to go
poke around in the shell to check that everything has done what it's
supposed to. Also, given that you mention being able to serialize any
changes you've made as you quit, it sure would be nice if, until that
happens, you could still run dumpdata before the database disappears.

Since the test runner already offers to delete it if a test database
already exists, why not just let the one you created --with-fixture hang
around until you run a new command that needs to get rid of it?

Otherwise this is a great idea that I currently do manually with dropdb;
createdb; manage.py loaddata; manage.py runserver;

Todd




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to