Skip to content

Instantly share code, notes, and snippets.

@hotsyk
Created July 10, 2011 09:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hotsyk/1074423 to your computer and use it in GitHub Desktop.
Save hotsyk/1074423 to your computer and use it in GitHub Desktop.
Way to avoid pyflakes error in the settings.py
try:
import local_settings
for param in dir(local_settings):
if not '__' in param:
setattr(sys.modules[__name__], param,\
getattr(local_settings, param))
except ImportError:
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment