Skip to content

Instantly share code, notes, and snippets.

@inklesspen
Created November 22, 2012 00:56
Show Gist options
  • Select an option

  • Save inklesspen/4128789 to your computer and use it in GitHub Desktop.

Select an option

Save inklesspen/4128789 to your computer and use it in GitHub Desktop.
def main(global_config, **settings):
""" This function returns a Pyramid WSGI application.
"""
redis_url = os.getenv('REDISTOGO_URL', 'redis://localhost:6379')
settings['redis_conn'] = redis.from_url(redis_url)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment