Recent Posts

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

Rate your ISP

ratemyisp

In June a bunch of great people went with me to a cottage for the weekend to create something. It was our 3rd Wilderness Labs adventure. The outcome is pretty awesome.

We built a service to collect simple ISP reviews to help Canadians find their best local ISP. We called it RateMyISP. (Coming up with names might not be our strongest suit.)

The idea came from Open Media's Stop the Meter campaign when more ...

Read More

WatPy: Waterloo Region Python Group

WatPy

Come hear what the newest tech group in Kitchener-Waterloo has to say at our first Peer 2 Peer event.

Thursday June 7th, 6:30pm at the Communitech Hub.

Featuring Brydon Gilliss and a handfull of lightning speakers.

More Information | Register

WatPy

We started meeting 4 months ago, and so far the response has been awesome. Our focus is building community, teaching Python and talking about the language we all like a heck of a lot ...

Read More

Export to CSV using the Django ORM

Django apps tend to be pretty data heavy. One common task is exporting sets of data to csv (comma separated values), a plain text file which can be loaded up in a spreadsheet and manipulated further. The first thing to do is make sure you know about the Python csv library.

If you are exporting all of you data with respect to one model, here is a quick way to do it and keep your ...

Read More