Thanks for sharing, Mike. It's great using tests on this way. I've being used versioning for a long time and that way it is easy to apply and
revert the changes too.

iñ


On Fri, 16 Nov 2012, Mike Dewhirst wrote:

I just discovered something fantastic about Django I didn't know before. I realise that isn't saying much about my knowledge. But I'm impressed.

I recently wrote a new model and put in a lot of time making it do stuff and writing the tests to prove it worked. I realised I had forgotten to syncdb but the tests were all behaving properly.

I dug deeper and saw Django actually create the table in the test database!

From that point I realised I could play around with the field structure until I was happy. The test database gets deleted after every run.

When I'm finished I can syncdb and lock it in.

Delicious!

Mike

--
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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.



--
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to