title: How to create random password? create_user function
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/9480641/django-password-generator">Django Password Generator</a>  </p>
  </blockquote>
  
  
  
  <pre><code>d = Data.objects.get(key=key)    
  User.objects.create_user(username = d.name, email= d.email, password =  password)
  </code></pre>
  
  <p>How to create random password and send this via e-mail to user (<code>d.email</code>) ?</p>