Skip to content

Instantly share code, notes, and snippets.

@inlanger
Created April 13, 2012 09:11
Show Gist options
  • Save inlanger/2375346 to your computer and use it in GitHub Desktop.
Save inlanger/2375346 to your computer and use it in GitHub Desktop.
Split development and production settings
import platform
IS_LOCAL = False
if platform.node() != 'server':
IS_LOCAL = True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment