Gunicorn is a very solid project, I hope that someday he will build it using several port bindings and a command line to indicate the priority of SSL.
When you finally start production, you will want to use the excellent Apache or Nginx load balancing.
But nothing prevents you (during development) from starting some workers associated with port 80, and some workers are tied to port 443 with a set of keys and certificates. Then you could write a login link as an βabsoluteβ URL, for example. href = "https: // yoursite / login" after logging in, they will use https URL.
#!/bin/sh
source share