title: Django Absolute url
body: <p>So I am new to django I have been working on PHP CodeIgniter in which to put absolute URL in href I used a function called <code>base_url</code> by calling URL helper<br></p>
  
  <pre><code>&lt;?php echo base_url().'user/login';?&gt;
  </code></pre>
  
  <p><br>which gives output something like
  <br><code>http://localhost/projectname/user/login</code><br>
  I want the same thing in Django but haven't got any answer or answer which I could understand. I don't want to use relative URL and my expected result is should be something like this<br></p>
  
  <pre><code>{% url 'login' %}
  </code></pre>
  
  <p><br>above code should return <br>
  <code>http://localhost/projectname/user/login</code></p>