Recent Posts

Go Open Data

What started as a brief conversation between myself and Michael Druker almost a year ago has come to life. On Saturday, May 11th people from Windsor to Ottawa are going to come together at the University of Waterloo School of Pharmacy for GO Open Data, a one day conference.

GO Open Data Conference

The conference aims to bring together people from across Ontario and across the various interests related to open data to enjoy 8 talks, 2 panels, and ...

Read More

Pjax vs JSON

At DjangoCon US 2012 I asked a question about performance after the BDFL keynote on Pjax. Asking about performance is never a good idea since it is never the most important thing. I was attempting to evaluate Pjax versus the plethora of Javascript based rendering that was being discussed.

A common idea was to use the same template language in Django as you use in Javascript. The Meteor keynote explained that just sharing a template ...

Read More

Function Based Views Are My First Love

There is something special about your first love. It is possible be too attached and not embrace the new hotness of say Class Based View (CBV). But after having a fling and then dating CBV for a while, I now know that Function Based Views will always have a special place in my heart, and I hope in Django.

Let's look at a FBV:

def foo(request, arg, template="foo.html"):
    # Do something
    return ...
Read More

DjangoCon and PyCon Canada

This fall I am venturing into the conference circuit starting with DjangoCon US in Washington DC, in September. I am definitely looking forward to seeing what it like to attend a major open source conference. I would also like to try to meet up with other Canadians making there way down to DjangoCon this year. Comment here or on find me on Twitter.

Then in November in Toronto an excellent group of Python developers are ...

Read More

UnicodeEncodeError when uploading files in Django using Supervisor and Gunicorn

Issues related uploading files with unicode filenames have long history with Django and Linux.

There are many stack overflow questions and blog posts on the subject already, but very few deal with solving the problem when using Supervisord and Gunicorn directly.

If you are using apache2 and mod_python you can configure your as per the docs:

https://code.djangoproject.com/wiki/django_apache_and_mod_wsgi#AdditionalTweaking

Fundamentally all fixes have the same goal: configure the environment of the ...

Read More