title: How to call a specific url from Django views?
body: <p>I want to make a call to specific url pattern from Django Views.
  The call should be inside first IF conditional and outside the inner if. Is the any function which provides redirection? Or something like redirect(map_vertical_crawl)? The code portion for
  Django Views:</p>
  
  <pre><code>def add_vertical(request):
  
      if request.method == 'POST':
  
          form = VerticalForm(request.POST)
  
          if form.is_valid():
              form.save()
  
          #I WANT TO CALL URL EXACTLY AT THIS POINT, INSIDE OUTER IF.
  
      verticals = Verticals.objects.all()
  
      return  render(request, 'cfman/add_vertical.html',
                     {'form': VerticalForm(),
                      'verticals': verticals}
                    )
  </code></pre>
  
  <p>Django URLS:</p>
  
  <pre><code>from django.conf.urls import url
  from . import views, apps
  
  urlpatterns = [
  
      #Generates Login Screen
      url(r'^$', views.LoginView.as_view(), name="login"),
  
      #Directs to manager view level 1
      url(r'^manager/$', views.verticals_view, name="manager"),
  
      #Directs to manager view level 2
      url(r'^manager/(?P&lt;verticalid&gt;\d+)/$', views.source_list, name='source_list'),
  
      #Add Vertical
      url(r'^verticals/add_vertical/$', views.add_vertical, name="add_vertical"),
  
      #Add Source
      url(r'^sources/add_source/$', views.add_source, name="add_source"),
  
      #Add Crawl Type
      url(r'^crawls/add_crawl/$', views.add_crawl, name="add_crawl"),
  
      #Map verticals and crawl types
      url(r'^vertical_crawl/$', views.map_vertical_crawl, name="map_vertical_crawl"),
  
  
  ]
  </code></pre>
  
  <p>I want to call the last url pattern , 'map_vertical_crawl' from views.</p>