Skip to content

Instantly share code, notes, and snippets.

View sebastianmacias's full-sized avatar

Sebastian Macias sebastianmacias

View GitHub Profile
"""
Here's my sample Django settings for a project I recently did. Visit http://damonjablons.wordpress.com to see the explanation.
"""
import os
import socket
# Set DEBUG = True if on the production server
if socket.gethostname() == 'your.domain.com':
DEBUG = False