I've done a couple of Django apps so far, and one thing that always annoys me is having to manually set DEBUG in my settings.py when moving from development to production, or vice versa.

Since I'm always developing on my localhost, I know that I always want DEBUG to be True when running on localhost. I also know that DEBUG should always be False when running on my production server. Fortunately, Python makes quick work of this. In your settings.py file:

That's pretty much it. Saves me a ton of time.

Yes, I'm that lazy.