title: How to resolve the django import from view function?
body: <p>On my way to learn django, I have been following this <a href="http://gsl.mit.edu/media/programs/south-africa-summer-2015/materials/djangobook.pdf" rel="nofollow noreferrer">book</a></p>
  
  <p>My views.py contains -</p>
  
  <pre><code>def addPublisher(request):
      if request == 'POST':
          form = PublisherForm(request.POST)
          if form.is_valid:
              form.save()
              return HttpResponseRedirect('add_publisher/thanks/')
          else:
              form = PublisherForm()
          return render_to_response('book/addPublisher.html',{'form':form})
  </code></pre>
  
  <p>My urls.py has following code-</p>
  
  <pre><code>from views import *
  
  urlpatterns = [
      url(r'^add/$',addPublisher)
      ]
  </code></pre>
  
  <p>While importing <code>addPublisher</code> function to my urls.py, I am getting this error.</p>
  
  <pre><code>name 'addPublisher' is not defined
  </code></pre>