I am trying to get the serving host and port of a pyramid applications using:
settings = get_current_registry().settings
But how can I get the host?
I tried:
settings.get('host')
But I am getting None
Any help is much appreciated.
request.host or request.host_url
pyramid.request
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With