Re: Overriding admin password

2010-09-10 Thread Jan Koprowski
Why so complicated. I don't check but there is: $ rb-site manage . changepassword On Fri, Sep 10, 2010 at 7:06 PM, Jan Koprowski wrote: > The problem is if You use sqlite and owner os file is Apache user :| > > On 8 Wrz, 21:50, Christian Hammond wrote: >> Hi Dave, >> >> While we should prob

Re: Overriding admin password

2010-09-10 Thread Jan Koprowski
The problem is if You use sqlite and owner os file is Apache user :| On 8 Wrz, 21:50, Christian Hammond wrote: > Hi Dave, > > While we should probably provide an easier way to do this, the > following should work. > >     $ rb-site manage /path/to/site shell >     >>> from django.contrib.auth.mod

Re: Overriding admin password

2010-09-08 Thread Christian Hammond
Hi Dave, While we should probably provide an easier way to do this, the following should work. $ rb-site manage /path/to/site shell >>> from django.contrib.auth.models import User >>> u = User.objects.get(username="admin") >>> u.set_password("the new password") >>> u.save() R