title: Django reference url in views.py
body: <p>In Django, I have setup urls.py like the following:</p>
  
  <pre><code>url(r'^example/$',   ExampleView.as_view(), name='example'),
  url(r'^example2/$',   AnotherView.as_view(), name='example2'),
  </code></pre>
  
  <p>Where "example2" would be like: '<a href="http://localenv.com/example2" rel="nofollow">http://localenv.com/example2</a>'.</p>
  
  <p>In my views.py, I'd like to return a reference to the "example2" link. Let me explain:</p>
  
  <pre><code>class ExampleView(TemplateView):
      some_var = REFERENCE TO EXAMPLE 2 URL
      print some_var
  </code></pre>
  
  <p>I'd like it that print statement to return "<a href="http://localenv.com/example2" rel="nofollow">http://localenv.com/example2</a>"</p>
  
  <p>Any help?</p>