Saturday, May 6, 2006

06
May
2006
Migration to magic-removal
Posted by Eugene Lazutkin in Development::Python::Django

Today I converted three web sites to the latest Django's trunk formerly known as the magic-removal branch. It was a very positive experience in general. New Database API with lazy database queries (courtesy of QuerySet) rocks! Direct interaction with model classes allows doing a lot of things much simpler than it was before. A lot of small improvements, which makes a big difference like explicit template extensions (use whatever is appropriate for your content), more transparent new Admin inner class, natural overriding of model methods (no more _pre_save() and _post_save() hooks!), and, of course, no more pluralization guessing.

I encountered exactly three small problems during the conversion:

In general the whole process was painless and left me completely satisfied with the outcome and code changes. Thanks to all contributors, who made it possible!

[See details]

Save/recommend this post:  del.icio.us  Digg  Reddit  StumbleUpon  Facebook    Subscribe to this blog:  Bloglines  Netvibes

Made with Django.