Skip to content
Discussion options

You must be logged in to vote

Admin in Pontoon is just Django's is_superuser flag on your user, so you can set it directly from the Django shell.

Log in once through MediaWiki so your account exists, then open a shell in the server container (make shell if you're using the Docker setup) and run:

./manage.py shell -c "from django.contrib.auth.models import User; print(User.objects.filter(email='you@example.com').update(is_superuser=True, is_staff=True))"

Use the email your MediaWiki account logs in with. It should print 1; 0 means no user has that email yet (check with User.objects.values_list('email', flat=True)). Log out and back in afterwards.

(./manage.py createsuperuser does exist, since it's Django's built-in that …

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@mathjazz
Comment options

@lines-of-codes
Comment options

@winxtxrgit
Comment options

@mathjazz
Comment options

@winxtxrgit
Comment options

Answer selected by Diskette-Guy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants