Merge PDF files using Python

Posted by jason on Sept. 28, 2011, 6:16 a.m.
Tags: programming python

Let me start this post with a disclaimer: I know there are tons of tools to do what I've done here, but I love python and look for any opportunity to write python scripts to keep my skills sharp. The script is 27 lines long, it does what I ...


Django: convert an application from sqlite to mysql

Posted by jason on July 11, 2011, 6 a.m.
Tags: django mysql python sqlite

Thanks to Steve Lord for this one.

Here's how to take a local django application in sqlite and deploy it into a mysql production environment.

First, use django's manage.py script to dump the data to a json file.

cd <django-project-dir>
python2 manage.py dumpdata <appname> > <appname>.json ...

Nginx + Uwsgi + Django

Posted by jason on May 18, 2011, 2:49 p.m. - 1 comment
Tags: django nginx python uwsgi

Wow, I just set up my machine with Nginx and Uwsgi to run this site (which uses Django), and the difference is staggering. This site just got ten times faster. Now, if I could only get everyone in the world to switch to Django and use the same server setup....


Django: First Impressions

Posted by jason on May 5, 2011, 10:42 a.m.
Tags: django python

Well, I recently dove back into Django development. I wrote this site from scratch using Django, and wow, is it ever easy to do things.

The learning curve is a little steep: creating a simple page requires you to add a few line of code in a few different files ...