Archive for the ‘Django’ Category

nosetest exception helper

Tuesday, May 13th, 2008

Last night, enhancing the Chytach, I've again come across a feeling that standard nose asserts and decorators are not quite useful when testing exceptions. For example, when I'm checking a django form validation, I'd like to make sure that my form throws a ValidationError (easy part) with a particular message (oops). Nose proposes ...

django’s urlconf for webware

Monday, December 3rd, 2007

It appears to be quite easy (from technical side) to do a coup refactoring an application from webware to django. As a first step could be substituting default webware url mapper from url-maps-to-file-hierarchy to django-like regexp matcher. url map would look like familiar django file: from django.conf.urls.defaults import patterns from Pages import Main urlpatterns ...

how to use mysql replication in django

Monday, October 1st, 2007

I'll start with warning.  Now it's just a pure thoughts, none of code is tested or ever written and is just a dump of an idea came up at Python Exception. For those who do not know the issue.  MySQL replication syncs databases one way, from master(s) to slaves.  This allows ...