title: Django login with plain password
body: <p>I had a db with usernames and password(plain text) and now I have to create an app of login so I needed a best way that how can I create a login can I use django registration or any other django default apps of login so which makes my work easy What I had been tried is:</p>
  
  <p>I had created a duplicate table and tried to encrypt it with this code but it didn't work</p>
  
  <pre><code>  import crypt
     # To encrypt the password. This creates a password hash with a random salt.
     password_hash = crypt.crypt(password)
     # To check the password.
     valid_password = crypt.crypt(cleartext, password_hash) == password_hash    
  </code></pre>