Author Archives: admin

Django :: making a date dropdown field

It seems like it is hard to input valid dates in a free-form text format for a significant portion of users. Personally, I don’t like many of the popup calendar widgets since they usually rely on Javascript for rendering — … Continue reading

Posted in django | Leave a comment

Python :: defprop – a very simple idiom for defining properties

Most attempts at making it easier to define properties in Python seem to quickly descend into metaclass obscurity. Metaclasses can surely solve the problem for an appropriate definition of solve, but “Explicit is better than implicit”, and “Simple is better … Continue reading

Posted in Python | Leave a comment

Django :: Custom Field

If you don’t do so allready, you should really get into the habit of looking at the validation errors your users are seeing. If you’re using the idiomatic Django view code this is very easy to do. After you get … Continue reading

Posted in django | Leave a comment

Django :: setup for the form examples

I normally develop on Windows and deploy on Linux which has so far worked without a single problem. On my development system I followed the effbot receipe to get Django up and running in five minutes. That receipe was written … Continue reading

Posted in django | Leave a comment