title: How to create a user in Django?
body: <p>I'm trying to create a new User in a Django project by the following code, but the highlighted line fires an exception.</p>
  
  <pre><code>def createUser(request):
      userName = request.REQUEST.get('username', None)
      userPass = request.REQUEST.get('password', None)
      userMail = request.REQUEST.get('email', None)
  
      # TODO: check if already existed
  
      **user = User.objects.create_user(userName, userMail, userPass)**
      user.save()
  
      return render_to_response('home.html', context_instance=RequestContext(request))
  </code></pre>
  
  <p>Any help?</p>