title: Django relative urls and https
body: <p>I have a Django project using https for certain part of the url (/account/,  /admin/, /purchase/).</p>
  
  <p>When on one of this page in https mode, all the relative inner links {% url foo %} will point to <a href="https://my_url" rel="nofollow">https://my_url</a>. </p>
  
  <p>However I do not want to have those pages shown as https :home, contacts ...</p>
  
  <p>What are the solutions for this kind of requirements ? </p>
  
  <p>Enforcing absolute url ?</p>
  
  <pre><code> http://{{ domain }}{% url foo %} 
  </code></pre>
  
  <p>is not too nice.</p>