title: Django: form CSRF verification failed
body: <p>This is my first Django project, however, I have a problem submitting the form.
  I'm getting 'CSRF verification failed'. It's a very simple form just 2 fields(frontpage) and on submit to display the same page.</p>
  <p>views.py</p>
  <pre><code>def newsletter(request):
      if request.method == 'POST':
          name = request.POST('name') 
          email = request.POST('email')
  
          newsletter = Newsletter(name = name, email = email)
          newsletter.save()
          return HttpResponseRedirect('')
  </code></pre>
  <p>models.py</p>
  <pre><code>class Newsletter(models.Model):
      name = models.CharField(max_length = 200)
      email = models.CharField(max_length=100)
      publish_date = models.DateTimeField(default = datetime.now, blank = True)
      
      def __str__(self):
          return self.name
  </code></pre>
  <p>admin.py</p>
  <pre><code>class NewsletterAdmin(admin.ModelAdmin):
      list_display = ('name','publish_date')
  admin.site.register(Newsletter, NewsletterAdmin)
  </code></pre>
  <p>urls.py</p>
  <pre><code>urlpatterns = [
      path('admin/', admin.site.urls),
      path('', home_view, name = 'home'),
      path('events/', events, name = 'events'),
      path('news/', news, name = 'mainnews'),
      path('about/', about, name = 'about'),
      path('', newsletter),
  ] + static(settings.MEDIA_URL, document_root = settings.MEDIA_ROOT)
  </code></pre>
  <p>html&gt;</p>
  <pre><code>&lt;div&gt;
      &lt;form method = 'post'&gt;
          {% csrf_token %} {{ form.as_p }} 
          &lt;input name = 'name' type = 'text' value = &quot;{{ newsletter.name }}&quot;&gt;
          &lt;input name = 'email' type = 'email' value = &quot;{{ newsletter.email }}&quot;&gt;
          &lt;button type = 'submit' name = 'save'&gt;Send&lt;/button&gt;
      &lt;/form&gt;
  &lt;/div&gt;
  </code></pre>