Peter's Blog

Redefining the Impossible

Django progress


I've been quiet on the Django progress front. There has been a little but I got bogged down in unit testing, mainly learning the shortcomings of the python unit testing module.

Some django observations:

  • can debug it very nicely in WingIDE using my trick.
  • problem with the many-to-many relationship: if you try to set the members of a relationship using the set_XXX method (where XXX = name of class members you want to add) you may get an error if your models do not include a field call 'id' (lower case) due to nasty hard-wired property name in the code. I had one called Id and I had to change the capitalisation.
  • the database api is a bit like the template system: I'd rather use something else but it'll do. I can mix in other api's if I want to get thinks done quick without wasting time single stepping through library code.

Filed under: django python

Have Your Say

I welcome constructive comments or questions but I reserve the right to delete any comments that displease me.

Who are you?

(Optional) If you enter an email address here I might email you back. Your email address will not be sold to spammers or shown anywhere

What do you have to say?