Skip to content

Instantly share code, notes, and snippets.

@proppy
Created March 25, 2010 16:04
Show Gist options
  • Save proppy/343718 to your computer and use it in GitHub Desktop.
Save proppy/343718 to your computer and use it in GitHub Desktop.
simplejson.dumps([dict([(k.replace('PLAYGROUND_', '').lower(), v)for k, v in imp.load_source('localsettings', os.path.join(BASE_DIR, f,'geodjango', 'localsettings.py')).__dict__.items() if k.startswith('PLAYGROUND_')]) for f in os.listdir(BASE_DIR) if os.path.isdir(f)])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment