title: How to render an html template with data from view?
body: <p>I am new to django. I made a form. I want that if the form is filled successfully then django should redirect to a success page showing the name entered in the form but no parameters should be present in the url itself. </p>
  
  <p>I searched on the internet and the solution I got was to redirect to url with pk as a get parameter which fetches the data and shows in the view. But I don't want to pass any thing in the url itself. and some websites say that http can't redirect with post data.</p>
  
  <p>Here's my views.py</p>
  
  <pre><code>class UserRegistrationView(CreateView):
  model = UserForm
  template_name = 'userregistration.html'
  form_class = UserForm
  success_url = 'success'
  
  def get_success_url(self):
      return reverse('success',kwargs = {'name' : self.object.firstName})
  </code></pre>
  
  <p>and here's the template to which I want to redirect:</p>
  
  <pre><code>&lt;h2&gt;Congratualations for registering {{name}} &lt;/h2&gt;
  </code></pre>
  
  <p>Basically what I want is that if the person fill form mentioning his/her firstName as "xyz" then the redirected success page should say that "Congratulations for registering xyz"</p>