On Feb 19, 11:40 am, "James Bennett" <[EMAIL PROTECTED]> wrote:
> On 2/19/07, kbochert <[EMAIL PROTECTED]> wrote:
>
> > How do I generate a hashed password?
>
> The easiest way is actually to manually create the superuser once
> during a syncdb run, and then copy/paste the hash out of the admin
> page for that user. You can manually generate a hash if you want to,
> but it's a little more work.
>
> > Does the sql go into  myapp/sql/ or django/contrib/admin/sql?
>
> It can technically go anywhere, but the best place is
> dango/contrib/auth/sql to ensure it's executed only after the auth
> users table is created.
>

No luck. I put:

 BEGIN;
 INSERT INTO "auth_user" ('username', 'email', 'password') VALUES
 ('admin', '[EMAIL PROTECTED]', 'sha1$b0461$2ed273ea30cf73581');  #'admin'
 COMMIT;

  BEGIN;
 INSERT INTO "auth_user" ('is_staff', 'is_active', 'is_superuser')
VALUES
 ('True', 'True', 'True');
 COMMIT;

into:
 django/contrib/auth/sql/user.sql

and syncdb still says ''You have just installed Django's auth system,
which means you
 don't have any superusers defined."

If I decline to create one, I can't log in.






--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
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