title: AttributeError: 'module' object has no attribute 'Name'
body: <p>i am trying to create a basic form using python which has only one field <code>your_name</code> in the table <code>NameForm</code>. But i am getting the error <code>AttributeError: 'module' object has no attribute 'Name'</code>. I dont understand where this error comes from. Could anyone help me with it? I am using django 1.11. 
  models.py</p>
  
  <pre><code>from __future__ import unicode_literals
  
  from django.db import models
  
  class NameForm(models.Model):
      your_name = models.CharField(max_length=200)
  </code></pre>
  
  <p>views.py</p>
  
  <pre><code>from __future__ import unicode_literals
  
  from django.shortcuts import render
  from django.http import HttpResponseRedirect
  from django.views import generic
  
  from .models import NameForm
  
  class NameView(generic.NameView):
  model = NameForm
  template_name = 'home/name.html'
  
  def get_name(request):
      if request.method == 'POST':
          form = NameForm(request.POST)
          if form.is_valid():
              return HttpResponseRedirect('/thanks/')
      else:
          form = NameForm()
  
      return render(request, 'name.html', {'form': form})
  </code></pre>
  
  <p>urls.py</p>
  
  <pre><code>from django.conf.urls import url
  
  from . import views
  
  app_name = 'home'
  
  urlpatterns = [
  url(r'^$', views.NameView.as_view(), name='name'),
  ]
  </code></pre>
  
  <p>template/home/name.html</p>
  
  <pre><code>&lt;form action="/your-name/" method="post"&gt;
      &lt;label for="your_name"&gt;Your name: &lt;/label&gt;
      &lt;input id="your_name" type="text" name="your_name" value="{{ current_name }}"&gt;
      &lt;input type="submit" value="OK"&gt;
  &lt;/form&gt;
  </code></pre>