Skip to content

Instantly share code, notes, and snippets.

@hotsyk
Created July 10, 2011 09:49
Show Gist options
  • Save hotsyk/1074423 to your computer and use it in GitHub Desktop.
Save hotsyk/1074423 to your computer and use it in GitHub Desktop.

Revisions

  1. hotsyk created this gist Jul 10, 2011.
    8 changes: 8 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    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