On 1/22/07, carlwenrich <[EMAIL PROTECTED]> wrote:
> I have a friend who lost his django admin username and password, and
> the programmer who set them up. What can we do to create new ones
> without having to rebuild the whole thing?

If you have shell access to the system it's running on, do the following:

Type 'python manage.py shell'

In the Python interpreter, do

from django.contrib.auth.models import User
u = User.objects.get(username__exact="your friend's username goes here")
u.set_password('put a new password here')
u.save()

And you should be good to go.

-- 
"May the forces of evil become confused on the way to your house."
  -- George Carlin

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to