title: Navigation in django
body: <p>I've just done my first little webapp in django and I love it. I'm about to start on converting an old production PHP site into django and as part its template, there is a navigation bar.</p>
  
  <p>In PHP, I check each nav option's URL against the current URL, in the template code and apply a CSS class if they line up. It's horrendously messy.</p>
  
  <p>Is there something better for django or a good way of handling the code in the template?</p>
  
  <p>To start, how would I go about getting the current URL?</p>