When i try to create users through the django admin dashboard through a superuser i'm getting a
"Something's wrong, we're on it!
Try again later
True"
Here's the docker logs:
[2021-04-02 15:26:46,281] [django.request::log_response::224] [ERROR] Internal Server Error: /user/login/
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/django/core/handlers/exception.py", line 47, in inner
response = get_response(request)
File "/usr/local/lib/python3.8/dist-packages/django/core/handlers/base.py", line 179, in _get_response
response = wrapped_callback(request, callback_args, *callback_kwargs)
File "/label-studio/label_studio/users/views.py", line 100, in user_login
org_pk = Organization.find_by_user(user).pk
File "/label-studio/label_studio/organizations/models.py", line 75, in find_by_user
raise ValueError(f'No memberships found for user {user}')
Steps to reproduce the behavior:
Expected behavior
Login normally as you would if you'd signed up through the main frontend signup page.
Environment (please complete the following information):
This is not intended to be done in such a way, there are a couple of other records needed to be created besides the User. I think we can all the necessary steps for user creation through django admin somewhere in the documentation, @DeStiNi10 do you think it might be helpful enough for you?
Yeah. I'd like to be able to have the ability to create users and manage them through the admin dashboard itself. As of now the documentation doesn't have any information on this. It'd be helpful to create users through the backend for sure.
Most helpful comment
Yeah. I'd like to be able to have the ability to create users and manage them through the admin dashboard itself. As of now the documentation doesn't have any information on this. It'd be helpful to create users through the backend for sure.