On 9/28/05, Qiangning Hong <[EMAIL PROTECTED]> wrote:
> I setup a polls app following the tutorial and want to do more.  I see
> there are users and groups settings in the admin index page, and so I
> want add a staff user to manage the polls.
>
> However, after I create the user, I found the available permissions list
> has nothing to do with polls management -- they are about create/delete
> users, groups, flat pages, etc.  How can I setup a staff user to
> create/delete/change polls?

Hey Qiangning,

The command "django-admin install polls" inserts the poll-specific
permissions into the permissions table, for every object that has the
"admin" parameter set. When you ran "django-admin install polls", you
probably didn't have "admin" set yet -- because the tutorial doesn't
introduce the admin part until later. What you need to do is this:

django-admin.py sqlinitialdata polls

...and manually execute the "INSERT INTO auth_permissions..." lines in
your database.

Now that you bring this up, it's rather inconvenient to have to do
this. Any ideas on how this could be improved?

Adrian

--
Adrian Holovaty
holovaty.com | djangoproject.com | chicagocrime.org

Reply via email to