title: How to get the url path of a view function in django
body: <p>As an example:</p>
  
  <p>view.py</p>
  
  <pre><code>def view1( request ):
      return HttpResponse( "just a test..." )
  </code></pre>
  
  <p>urls.py</p>
  
  <pre><code>urlpatterns = patterns('',
      url( r'^view1$', 'app1.view.view1'),
  )
  </code></pre>
  
  <p>I want to get the URL path of <code>view1</code>. How can I do this.
  I want to avoid hard coding any URL paths, such as "xxx/view1".</p>