title: Django UserCreationForm neither gives error message nor registering user
body: <p>I am beginner to python Django. And trying build an posting article website with the help of tutorials. I got stuck at UserCreationForm. I have created a form using UserCreationForm, but when I am submitting the form I am not able to neither submit the form nor getting any error message on the page. </p>
  
  <p>My <strong>views.py</strong> code </p>
  
  <pre><code> from django.shortcuts import render_to_response
   from django.contrib.auth import authenticate
   from django.http import HttpResponseRedirect
   from django.contrib import auth
   from django.template.context_processors import csrf
   from django.contrib.auth.forms import UserCreationForm
  
   def register_user(request):
       if request.method == 'POST':
          form = UserCreationForm(request.POST)
          if form.is_valid():
             form.save()
             return HttpResponseRedirect('/accounts/register_success')
  
      args = {}
      args.update(csrf(request))
  
      args['form'] = UserCreationForm()
      print args
      return render_to_response('register.html', args)
  
  
   def register_success(request):
      return render_to_response('register_success.html')
  </code></pre>
  
  <p><strong>register.html</strong></p>
  
  <pre><code> {% extends "base.html" %}
  
   {% block content %}
  
      &lt;h2&gt;Register&lt;/h2&gt;
      &lt;form action="/accounts/register/" method="post"&gt; {% csrf_token %}
  
        {{form}}
  
        &lt;input type="submit" value="Register"/&gt;
  
     &lt;/form&gt;
  
    {% endblock %}
  </code></pre>
  
  <p><strong>register_success.html</strong></p>
  
  <pre><code>  {% extends "base.hml" %}
  
    {% block content %}
  
     &lt;h2&gt;You have registered!&lt;/h2&gt;
     &lt;p&gt;Click &lt;a href="/accounts/login/"&gt;Here&lt;/a&gt; to login again&lt;/p&gt;
  
   {% endblock %}
  </code></pre>