Browsing all articles from July, 2010.
Django time zone problem
This is a Django bug specific to Windows and it took me half a day to figure out because I trusted the datetime module! Basically if you set your TIME_ZONE in the settings.py file like so: TIME_ZONE = ‘Australia/Sydney’ The datetime and time modules will always return the UTC date. The strange thing is that [...]
Creating a Django cron job
I couldn’t find a way to directly call a Python function in a Django application view from the command line. It doesn’t seem like it is a common thing to do from my Google search attempts. In this example I have a function defined to download a few web sites once a day using a [...]
PyWeek 3
Unfortunately Slowchop Studios couldn’t make time for PyWeek 3. Maybe next time!