-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Hi there !
I've managed to set it up following the Deploying on WMF Toolforge, but locally.
Now, at the stage I'm creating the User, after creating the OAuth keys and passing them to the secret.py, when I try to login for the first time (before creating the staff user within the shell) I get the following error (with DEBUG = True):
Django Version: | 2.1.15
-- | --
TypeError
Direct assignment to the forward side of a many-to-many set is prohibited. Use groups.set() instead.
/var/www/venv/lib/python3.6/site-packages/django/db/models/fields/related_descriptors.py in __set__, line 537
/var/www/venv/bin/python
3.6.9
['/var/www/src', '/usr/lib/python36.zip', '/usr/lib/python3.6', '/usr/lib/python3.6/lib-dynload', '/var/www/venv/lib/python3.6/site-packages']
Sat, 16 Apr 2022 02:23:54 +0000
Here is the Traceback:
Django Version: 2.1.15
Python Version: 3.6.9
Installed Applications:
('django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'social_django',
'django_filters',
'rest_framework',
'store',
'revert',
'tagging',
'django_extensions')
Installed Middleware:
['django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'social_django.middleware.SocialAuthExceptionMiddleware']
Traceback:
File "/var/www/venv/lib/python3.6/site-packages/django/core/handlers/exception.py" in inner
34. response = get_response(request)
File "/var/www/venv/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
126. response = self.process_exception_by_middleware(e, request)
File "/var/www/venv/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
124. response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/var/www/venv/lib/python3.6/site-packages/django/views/decorators/cache.py" in _wrapped_view_func
44. response = view_func(request, *args, **kwargs)
File "/var/www/venv/lib/python3.6/site-packages/django/views/decorators/csrf.py" in wrapped_view
54. return view_func(*args, **kwargs)
File "/var/www/venv/lib/python3.6/site-packages/social_django/utils.py" in wrapper
46. return func(request, backend, *args, **kwargs)
File "/var/www/venv/lib/python3.6/site-packages/social_django/views.py" in complete
33. *args, **kwargs)
File "/var/www/venv/lib/python3.6/site-packages/social_core/actions.py" in do_complete
45. user = backend.complete(user=user, *args, **kwargs)
File "/var/www/venv/lib/python3.6/site-packages/social_core/backends/base.py" in complete
40. return self.auth_complete(*args, **kwargs)
File "/var/www/venv/lib/python3.6/site-packages/social_core/utils.py" in wrapper
247. return func(*args, **kwargs)
File "/var/www/venv/lib/python3.6/site-packages/social_core/backends/oauth.py" in auth_complete
181. return self.do_auth(access_token, *args, **kwargs)
File "/var/www/venv/lib/python3.6/site-packages/social_core/utils.py" in wrapper
247. return func(*args, **kwargs)
File "/var/www/venv/lib/python3.6/site-packages/social_core/backends/oauth.py" in do_auth
192. return self.strategy.authenticate(*args, **kwargs)
File "/var/www/venv/lib/python3.6/site-packages/social_django/strategy.py" in authenticate
105. return authenticate(*args, **kwargs)
File "/var/www/venv/lib/python3.6/site-packages/django/contrib/auth/__init__.py" in authenticate
73. user = backend.authenticate(request, **credentials)
File "/var/www/venv/lib/python3.6/site-packages/social_core/backends/base.py" in authenticate
80. return self.pipeline(pipeline, *args, **kwargs)
File "/var/www/venv/lib/python3.6/site-packages/social_core/backends/base.py" in pipeline
83. out = self.run_pipeline(pipeline, pipeline_index, *args, **kwargs)
File "/var/www/venv/lib/python3.6/site-packages/social_core/backends/base.py" in run_pipeline
113. result = func(*args, **out) or {}
File "/var/www/venv/lib/python3.6/site-packages/social_core/pipeline/user.py" in user_details
119. setattr(user, name, value)
File "/var/www/venv/lib/python3.6/site-packages/django/db/models/fields/related_descriptors.py" in __set__
537. % self._get_set_deprecation_msg_params(),
Exception Type: TypeError at /oauth/complete/mediawiki/
Exception Value: Direct assignment to the forward side of a many-to-many set is prohibited. Use groups.set() instead.
Do you guys have any idea how to fix it?
Thanks in advance
Metadata
Metadata
Assignees
Labels
No labels