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 script to dump the data to a json file.

cd <django-project-dir>
python2 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 ...