title: ssl with django on AWS
body: <p>I have SSL certification at the ELB level for my site hosted on Amazon. I used the following site to setup a middle ware to forward all <code>http</code> requests to <code>https</code>:</p>
  
  <p><a href="http://djangosnippets.org/snippets/2472/" rel="nofollow">http://djangosnippets.org/snippets/2472/</a></p>
  
  <p>It's working great. But here's my question. EACH request is getting forwarded, so I notice a slight lag when clicking links, etc. Nothing extreme. But is there a way to force django to do everything via <code>https</code>? When I have code to <code>HttpResponse</code> and <code>HttpResponseRedirect</code>, how can I have it default to <code>https</code> instead of <code>http</code>? I tried to search for this and was unsuccessful...</p>
  
  <p>I know it's possible if I type <code>https://www...</code> for each URL for redirect and on the links for the pages, but I wanted to avoid doing it that way if possible.</p>