pip install pyramid_force_https
pyramid_force_https runs with pyramid>=1.7 and python>=2.7 and python>=3.5. Other versions might also work.
def main(global_config, **settings): config = Configurator(settings=settings) config.include('pyramid_force_https') return config.make_wsgi_app()
See tests for more examples.
If you use structlog, add the following configuration setting to your INI file to enable structlog-like logging:
pyramid_force_https.structlog = true
- Update CHANGES.rst.
- Update setup.py version.
python setup.py sdist upload.
At Niteo we regularly contribute back to the Open Source community. If you do too, we'd like to invite you to join our team!