Re: Admin without Auth

2007-02-19 Thread kbochert
On Feb 19, 1:52 pm, "Honza Král" <[EMAIL PROTECTED]> wrote: > On 2/19/07, kbochert <[EMAIL PROTECTED]> wrote: > > > > > > > On Feb 19, 1:25 pm, "Honza Kr?l" <[EMAIL PROTECTED]> wrote: > > > On 2/19/07, kbochert <[EMAIL PROTECTED]> wrote: > > > > > On Feb 19, 12:46 pm, "Honza Kr?l" <[EMAIL PROTEC

Re: Admin without Auth

2007-02-19 Thread Honza Král
On 2/19/07, kbochert <[EMAIL PROTECTED]> wrote: > > > > On Feb 19, 1:25 pm, "Honza Kr�l" <[EMAIL PROTECTED]> wrote: > > On 2/19/07, kbochert <[EMAIL PROTECTED]> wrote: > > > > > > > > > On Feb 19, 12:46 pm, "Honza Kr?l" <[EMAIL PROTECTED]> wrote: > > > > > > what exactly are you doing? > > > > this

Re: Admin without Auth

2007-02-19 Thread kbochert
On Feb 19, 1:25 pm, "Honza Král" <[EMAIL PROTECTED]> wrote: > On 2/19/07, kbochert <[EMAIL PROTECTED]> wrote: > > > > > On Feb 19, 12:46 pm, "Honza Kr?l" <[EMAIL PROTECTED]> wrote: > > > > what exactly are you doing? > > > this approach works perfectly for me... > > > I put the mentioned sql in

Re: Admin without Auth

2007-02-19 Thread kbochert
On Feb 19, 1:35 pm, "Honza Král" <[EMAIL PROTECTED]> wrote: > On 2/19/07, kbochert <[EMAIL PROTECTED]> wrote: > > > > > > > On Feb 19, 1:25 pm, "Honza Kr?l" <[EMAIL PROTECTED]> wrote: > > > On 2/19/07, kbochert <[EMAIL PROTECTED]> wrote: > > > > > On Feb 19, 12:46 pm, "Honza Kr?l" <[EMAIL PROTEC

Re: Admin without Auth

2007-02-19 Thread Honza Král
On 2/19/07, kbochert <[EMAIL PROTECTED]> wrote: > > > > On Feb 19, 1:25 pm, "Honza Kr�l" <[EMAIL PROTECTED]> wrote: > > On 2/19/07, kbochert <[EMAIL PROTECTED]> wrote: > > > > > > > > > On Feb 19, 12:46 pm, "Honza Kr?l" <[EMAIL PROTECTED]> wrote: > > > > > > what exactly are you doing? > > > > this

Re: Admin without Auth

2007-02-19 Thread kbochert
On Feb 19, 1:25 pm, "Honza Král" <[EMAIL PROTECTED]> wrote: > On 2/19/07, kbochert <[EMAIL PROTECTED]> wrote: > > > > > On Feb 19, 12:46 pm, "Honza Kr?l" <[EMAIL PROTECTED]> wrote: > > > > what exactly are you doing? > > > this approach works perfectly for me... > > > I put the mentioned sql in

Re: Admin without Auth

2007-02-19 Thread Honza Král
On 2/19/07, kbochert <[EMAIL PROTECTED]> wrote: > > > > On Feb 19, 12:46 pm, "Honza Kr�l" <[EMAIL PROTECTED]> wrote: > > > > > what exactly are you doing? > > this approach works perfectly for me... > > > I put the mentioned sql in a file in my Djano installation django/ > contrib/auth/sql/users.s

Re: Admin without Auth

2007-02-19 Thread Honza Král
On 2/19/07, kbochert <[EMAIL PROTECTED]> wrote: > > > > On Feb 19, 1:11 pm, "Chris Brand" <[EMAIL PROTECTED]> wrote: > > > I then erase my apps database and run 'manage.py syncdb' > > > > Are you aware that you don't have to erase the database before running > > syncdb ? If you don't erase the db,

Re: Admin without Auth

2007-02-19 Thread kbochert
On Feb 19, 1:11 pm, "Chris Brand" <[EMAIL PROTECTED]> wrote: > > I then erase my apps database and run 'manage.py syncdb' > > Are you aware that you don't have to erase the database before running > syncdb ? If you don't erase the db, you won't need to recreate the > superuser... > If I add or

RE: Admin without Auth

2007-02-19 Thread Chris Brand
> I then erase my apps database and run 'manage.py syncdb' Are you aware that you don't have to erase the database before running syncdb ? If you don't erase the db, you won't need to recreate the superuser... Chris --~--~-~--~~~---~--~~ You received this mess

Re: Admin without Auth

2007-02-19 Thread kbochert
On Feb 19, 12:46 pm, "Honza Král" <[EMAIL PROTECTED]> wrote: > > what exactly are you doing? > this approach works perfectly for me... > I put the mentioned sql in a file in my Djano installation django/ contrib/auth/sql/users.sql I then erase my apps database and run 'manage.py syncdb' When p

Re: Admin without Auth

2007-02-19 Thread James Bennett
On 2/19/07, kbochert <[EMAIL PROTECTED]> wrote: > 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'

Re: Admin without Auth

2007-02-19 Thread Honza Král
On 2/19/07, kbochert <[EMAIL PROTECTED]> wrote: > > > > 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 > > du

Re: Admin without Auth

2007-02-19 Thread kbochert
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

Re: Admin without Auth

2007-02-19 Thread James Bennett
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

Re: Admin without Auth

2007-02-19 Thread kbochert
On Feb 19, 11:08 am, "James Bennett" <[EMAIL PROTECTED]> wrote: > On 2/19/07, James Bennett <[EMAIL PROTECTED]> wrote: > > > Something like > > > BEGIN; > > INSERT INTO "auth_user" ('username', 'email', 'password') VALUES > > ('me', '[EMAIL PROTECTED]', 'my_hashed_password'); > > COMMIT; > > (an

Re: Admin without Auth

2007-02-19 Thread James Bennett
On 2/19/07, James Bennett <[EMAIL PROTECTED]> wrote: > Something like > > BEGIN; > INSERT INTO "auth_user" ('username', 'email', 'password') VALUES > ('me', '[EMAIL PROTECTED]', 'my_hashed_password'); > COMMIT; (and, of course, the appropriate value of True for the DB you're using, on the 'is_sta

Re: Admin without Auth

2007-02-19 Thread James Bennett
On 2/19/07, kbochert <[EMAIL PROTECTED]> wrote: > -- I see how to provide a .sql file, but how do I put a super user in > it? Something like BEGIN; INSERT INTO "auth_user" ('username', 'email', 'password') VALUES ('me', '[EMAIL PROTECTED]', 'my_hashed_password'); COMMIT; Just straightforward SQ

Re: Admin without Auth

2007-02-19 Thread kbochert
None of those suggestions seem to help -- Should I use a method that will break in 1.0?? -- As a beginner, I am loath to try patching Django -- I have no test_client in my Django distribution -- I see how to provide a .sql file, but how do I put a super user in it? Perhaps I'm just going at this

Re: Admin without Auth

2007-02-19 Thread James Bennett
On 2/19/07, kbochert <[EMAIL PROTECTED]> wrote: > Is there a was to install the contrib.admin app without the > contrib.auth app?? No; the admin app requires the auth app so that it can allow authorized users to log in. > While learning, I am eraseing the database and doing manage.py syncdb > a

Re: Admin without Auth

2007-02-19 Thread Russell Keith-Magee
On 2/19/07, kbochert <[EMAIL PROTECTED]> wrote: > > Is there a was to install the contrib.admin app without the > contrib.auth app?? No; the two are pretty closely intertwined. > While learning, I am eraseing the database and doing manage.py syncdb > a lot, and it would be real nice to have it c

Admin without Auth

2007-02-18 Thread kbochert
Is there a was to install the contrib.admin app without the contrib.auth app?? While learning, I am eraseing the database and doing manage.py syncdb a lot, and it would be real nice to have it come up without having to enter username email etc. each time. Karl --~--~-~--~~-