Skip to content

Instantly share code, notes, and snippets.

View merwok's full-sized avatar
🍋
>>>

Éric merwok

🍋
>>>
View GitHub Profile
@merwok
merwok / pyramid_main.py
Created April 12, 2017 15:37 — forked from pior/pyramid_main.py
Keep your deployment secrets out of your PasterDeploy configuration using Environment Variables
import os
from pyramid.config import Configurator
def main(global_config, **settings):
settings = {k: os.path.expandvars(v) for k, v in settings.items()}
config = Configurator(settings=settings)
config.include(__name__)
return config.make_wsgi_app()
@merwok
merwok / doc.rst
Last active August 29, 2015 14:11 — forked from hadrien/doc.rst
@merwok
merwok / doc.rst
Last active August 29, 2015 14:11 — forked from hadrien/doc.rst
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.