python-dirbtuves / website

Python dirbtuvės project web site.
GNU Affero General Public License v3.0
2 stars 0 forks source link

admin panel inaccessible #42

Open Euphorbium opened 9 years ago

Euphorbium commented 9 years ago

How can I get to admin panel? When I go to ^/admin, I get redirected to homepage, and if I am not logged in, I get redirected to log in page. But there is no way to log in with a user created with a createsuperuser command. I have tried to make regular user a superuser via a database, but it also gets redirected to home page.

sirex commented 9 years ago

Currently you have the only choice:

  1. Log in using one of the login methods (OpenID/OAuth/Persona).
  2. Open Django shell bin/django shell_plus and run following commands:

    >>> u = User.objects.get()
    >>> u.is_superuser = u.is_staff = True
    >>> u.save()
  3. Then you should be able to access /admin/.
sirex commented 9 years ago

A'm leaving this task in backlog as a user story for improvement to avoid this manual process.