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.