djangosnippets.org: Latest snippets tagged with 'sha'https://djangosnippets.org/tags/sha/2009-06-01T11:36:23-05:00MySQL django password function2009-06-01T11:36:23-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