Created
August 24, 2013 10:47
-
-
Save wgm89/6327409 to your computer and use it in GitHub Desktop.
django笔录
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 更改admin 密码 | |
| --------------------------------------------- | |
| ./manage.py changepassword admin | |
| --------------------------------------------- | |
| django-admin.py changepassword admin | |
| You can also change a password programmatically: | |
| --------------------------------------------- | |
| from django.contrib.auth.models import User | |
| admin = User.objects.get(username='admin') | |
| admin.set_password('mynewpassword') | |
| admin.save() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment