djangosnippets.org: Latest snippets tagged with 'mysq'https://djangosnippets.org/tags/mysq/2009-06-01T11:36:23.437102-05:00MySQL django password function
2009-06-01T11:36:23.437102-05:00mcostahttps://djangosnippets.org/snippets/1541/<p>This functions encodes a password in the same format as django. You can set the auth_user.password column with the result of this function:</p>
<pre><code>update `auth_user`.`password`
set `password` = django_password('secret')
where id = 1234;
</code></pre>
Freely redistributable