title: User creation from request POST through crul/http.
body: <p>I am trying to create users from a POST request sent from curl/httpie commands. Users are created in the User Model, but the password is stored in raw string format. This is what i do.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>http POST http://127.0.0.1:8000/user/ username=taco password=123</code></pre>
  </div>
  </div>
  </p>
  
  <p>This creates a User with the following credentials.</p>
  
  <p>Now when I enter my admin site, and click on the details of user created. The password shows like this. </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>Invalid password format or unknown hashing algorithm.
  Raw passwords are not stored, so there is no way to see this user's password, but you can change the password using this form.</code></pre>
  </div>
  </div>
  </p>
  
  <p>I have automatic token creation system on user post_save. Token is also created. but when i put.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>http POST http://127.0.0.1:8000/obtain/ username=taco password=123</code></pre>
  </div>
  </div>
  </p>
  
  <p>url***/obtain goes to views.obtain_auth_token imported from rest_framework.authtoken.views from which I receive the token for the specified User.</p>
  
  <p>but I get a error saying.. </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>"non_field_errors": [
          "Unable to log in with provided credentials."
  ]</code></pre>
  </div>
  </div>
  </p>
  
  <p>I basically want to signup(create) a user from terminal(http/curl) and obtain their token from "/obtain"</p>