SSL/HTTPS: Serving Django Websites securely

Setting up SSL connection is vital for security to prevent man-in-the-middle attacks when someone can see or modify request/responses.

Learn how to:

 – Setup SSL certificates with Let's Encrypt
 – Serve HTTPS locally with "runserver" command in local development environment
 – Setup Django and web server to pass secure headers correctly
 – Setup cookies and session keys to work only in HTTPS and more