On 7/21/07, schmitzkatze <[EMAIL PROTECTED]> wrote:
>
> I have forgotten my superuser login, what to do?
> Even with another project I have to have it.
> I can not login ad the admins page
Use the Python prompt to modify the admin User.
Run ./manage.py shell, then run the following commands.
>>> from django.contrib.auth.models import User
>>> u = User.objects.get(username='admin')
>>> u.set_password('newpassword')
>>> u.save()
i.e., retrieve the admin user, set the password, and save the object.
Then you can log in with the new password.
Yours,
Russ Magee %-)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---