First time here? Check out the FAQ!
1

How can you create an admin?
 

I have installed Askbot and registered two users. Neither of them seems to be an admin because I do not see admin only features such as settings link at the top of the page. So do I really have no admin? If so, how can I create one?

I am sure that I only have two users and no one else because when I went into shell and printed out

User.objects.all()

I only get exactly two users neither of whom is an admin.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
apg's avatar
167
apg
asked 11 years ago

Comments

I wonder why I cannot post an answer ... the page refreshes and I get the same state as before hitting Post Your Answer

Lurker's avatar Lurker (10 years ago)

Could it be because I have little karma and the answer contained a link?

Lurker's avatar Lurker (10 years ago)
see more comments

1 Answer

1

This worked for me:

python manage.py add_admin <user id>

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Lurker's avatar
26
Lurker
answered 10 years ago
Evgeny's avatar
13.2k
Evgeny
updated 10 years ago
link

Comments

see more comments