Skip to content

Entries published on November 8, 2007

1 entry published on this date. See also: all entries published in November 2007, full archive.

Moving into production

At some point, every Django-based project (hopefully) moves out of the development phase and into production deployment, and this can be a traumatic experience. As a result, there are a few things you’ll nearly always want to do during this process in order to transition smoothly and ensure you go to production with all your code humming along; this time around we’ll look at a few of the more common items, and if I miss out on something you’ve found useful, feel free to mention it in a comment.

General settings changes

First and foremost, you want to flip your DEBUG setting to False; I’d hope this is obvious, but I’ve seen enough people move to production with DEBUG still on that it’s worth mentioning explicitly. Turning DEBUG off brings several immediate benefits:

  1. Django will stop displaying full tracebacks with code and settings whenever it encounters an internal error, which …

Entry published November 8, 2007. Read full entry.