Skip to content
Discussion options

You must be logged in to vote

🔧 How to Create an Additional Admin User in wger (Docker Setup)

If you're running wger via Docker and want to give another user admin access, follow these simple steps. This grants full admin rights via the built-in admin group.


🐳 Step-by-Step (Docker + Django Shell)

  1. Grant all user roles

    Grant all roles in the wger Web UI to your user account.

  2. Open the Django shell inside the Docker container:

    docker compose exec web python3 manage.py shell
  3. Run the following Python code to promote your user:

    from django.contrib.auth.models import User, Group
    
    user = User.objects.get(username='your_username')
    user.is_staff = True
    
    admin_group = Group.objects.get(name='admin')
    admin_group.user_set.add(

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by FiveKnive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant