title: Taking User Input to create Users in Django
body: <p>I would like to create/add new users to my app in Django using the user input. I am using the default login provided by django. I am trying to add users to the default login. The example in <a href="https://docs.djangoproject.com/en/dev/topics/auth/" rel="noreferrer">https://docs.djangoproject.com/en/dev/topics/auth/</a>: </p>
  
  <pre><code>&gt;&gt;&gt; from django.contrib.auth.models import User
  &gt;&gt;&gt; user = User.objects.create_user('john', 'lennon@thebeatles.com', 'john password')
  </code></pre>
  
  <p>passes the username and password. But i would like this to happen with user input. How do i do this?</p>
  
  <p>Need some guidance...</p>
  
  <p>I tried this but it doesn't seem to work:</p>
  
  <pre><code>def lexusadduser(request):
      """
      add user
      """
      if request.method == "POST":
          user.save()
  
          auth_user = authenticate(username=user.username,password=user.password)
  
          if auth_user is not None:
              lexusmain(request)
          else:
              return render('adduser.html') 
  </code></pre>