title: redirecting from view to another html page with another url slug in Django 1.6
body: <p>I have a view (login view). which will be used by <code>/login/</code> url.</p>
  
  <p>I mean <code>http://&lt;base-url&gt;/login/</code></p>
  
  <p>in urls.py i'm doing <code>url(r'^login/$',myapp.views.login)</code></p>
  
  <pre><code>def login(request,template='login.html'):
       #do login stuff
       If successfully logged-in:
            then redirect to new html page with new url let say '/home/'
       else:
           show same login page again and ask user to enter valid credentials  
  </code></pre>
  
  <p>so if a user successfully login I want to redirect/transfer to the new link
  <code>http://&lt;base-url&gt;/home/</code> and this should be associate to "home.html" file in template folder(where "login.html" is already)</p>
  
  <p>now on this home.html  I have a form (ask user to enter few things in text boxes.) and at the end of this home page there is submit button after clicking on this submit button I'll save all entered detail in DB. 
  I can Do all these things but I'm stucked at redirecting part (I'm able to change the html page (i mean after succesfully login this shows content of "home.html"))</p>
  
  <p>but I'm unable to change the url slug. it is still <code>/login/</code>
  but I want it to be <code>/home/</code>.</p>
  
  <p>as obviously I have another view for home.html which will handle saving the data from form to DB.</p>