Всем, добрый день у меня возникала такая проблема, подключил к своему приложению django-allauth, но при попытке зарегистрироваться пишет следующее
В качестве бд я использую Mongodb через библиотеку djongo.
File "C:\Users\Serufim\.virtualenvs\Django_first_app-BL6ULLgH\lib\site-packages\django\core\handlers\exception.py" in inner
35. response = get_response(request)
File "C:\Users\Serufim\.virtualenvs\Django_first_app-BL6ULLgH\lib\site-packages\django\core\handlers\base.py" in _get_response
128. response = self.process_exception_by_middleware(e, request)
File "C:\Users\Serufim\.virtualenvs\Django_first_app-BL6ULLgH\lib\site-packages\django\core\handlers\base.py" in _get_response
126. response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "C:\Users\Serufim\.virtualenvs\Django_first_app-BL6ULLgH\lib\site-packages\django\views\generic\base.py" in view
69. return self.dispatch(request, *args, **kwargs)
File "C:\Users\Serufim\.virtualenvs\Django_first_app-BL6ULLgH\lib\site-packages\django\utils\decorators.py" in _wrapper
62. return bound_func(*args, **kwargs)
File "C:\Users\Serufim\.virtualenvs\Django_first_app-BL6ULLgH\lib\site-packages\django\views\decorators\debug.py" in sensitive_post_parameters_wrapper
76. return view(request, *args, **kwargs)
File "C:\Users\Serufim\.virtualenvs\Django_first_app-BL6ULLgH\lib\site-packages\django\utils\decorators.py" in bound_func
58. return func.__get__(self, type(self))(*args2, **kwargs2)
File "C:\Users\Serufim\.virtualenvs\Django_first_app-BL6ULLgH\lib\site-packages\allauth\account\views.py" in dispatch
214. return super(SignupView, self).dispatch(request, *args, **kwargs)
File "C:\Users\Serufim\.virtualenvs\Django_first_app-BL6ULLgH\lib\site-packages\allauth\account\views.py" in dispatch
80. **kwargs)
File "C:\Users\Serufim\.virtualenvs\Django_first_app-BL6ULLgH\lib\site-packages\allauth\account\views.py" in dispatch
192. **kwargs)
File "C:\Users\Serufim\.virtualenvs\Django_first_app-BL6ULLgH\lib\site-packages\django\views\generic\base.py" in dispatch
89. return handler(request, *args, **kwargs)
File "C:\Users\Serufim\.virtualenvs\Django_first_app-BL6ULLgH\lib\site-packages\allauth\account\views.py" in post
102. if form.is_valid():
File "C:\Users\Serufim\.virtualenvs\Django_first_app-BL6ULLgH\lib\site-packages\django\forms\forms.py" in is_valid
179. return self.is_bound and not self.errors
File "C:\Users\Serufim\.virtualenvs\Django_first_app-BL6ULLgH\lib\site-packages\django\forms\forms.py" in errors
174. self.full_clean()
File "C:\Users\Serufim\.virtualenvs\Django_first_app-BL6ULLgH\lib\site-packages\django\forms\forms.py" in full_clean
376. self._clean_fields()
File "C:\Users\Serufim\.virtualenvs\Django_first_app-BL6ULLgH\lib\site-packages\django\forms\forms.py" in _clean_fields
397. value = getattr(self, 'clean_%s' % name)()
File "C:\Users\Serufim\.virtualenvs\Django_first_app-BL6ULLgH\lib\site-packages\allauth\account\forms.py" in clean_username
325. value = get_adapter().clean_username(value)
File "C:\Users\Serufim\.virtualenvs\Django_first_app-BL6ULLgH\lib\site-packages\allauth\account\adapter.py" in clean_username
264. if filter_users_by_username(username).exists():
File "C:\Users\Serufim\.virtualenvs\Django_first_app-BL6ULLgH\lib\site-packages\django\db\models\query.py" in exists
715. return self.query.has_results(using=self.db)
File "C:\Users\Serufim\.virtualenvs\Django_first_app-BL6ULLgH\lib\site-packages\django\db\models\sql\query.py" in has_results
509. return compiler.has_results()
File "C:\Users\Serufim\.virtualenvs\Django_first_app-BL6ULLgH\lib\site-packages\django\db\models\sql\compiler.py" in has_results
1035. return bool(self.execute_sql(SINGLE))
File "C:\Users\Serufim\.virtualenvs\Django_first_app-BL6ULLgH\lib\site-packages\django\db\models\sql\compiler.py" in execute_sql
1053. sql, params = self.as_sql()
File "C:\Users\Serufim\.virtualenvs\Django_first_app-BL6ULLgH\lib\site-packages\django\db\models\sql\compiler.py" in as_sql
459. where, w_params = self.compile(self.where) if self.where is not None else ("", [])
File "C:\Users\Serufim\.virtualenvs\Django_first_app-BL6ULLgH\lib\site-packages\django\db\models\sql\compiler.py" in compile
391. sql, params = node.as_sql(self, self.connection)
File "C:\Users\Serufim\.virtualenvs\Django_first_app-BL6ULLgH\lib\site-packages\django\db\models\sql\where.py" in as_sql
80. sql, params = compiler.compile(child)
File "C:\Users\Serufim\.virtualenvs\Django_first_app-BL6ULLgH\lib\site-packages\django\db\models\sql\compiler.py" in compile
391. sql, params = node.as_sql(self, self.connection)
File "C:\Users\Serufim\.virtualenvs\Django_first_app-BL6ULLgH\lib\site-packages\django\db\models\lookups.py" in as_sql
163. rhs_sql = self.get_rhs_op(connection, rhs_sql)
File "C:\Users\Serufim\.virtualenvs\Django_first_app-BL6ULLgH\lib\site-packages\django\db\models\lookups.py" in get_rhs_op
167. return connection.operators[self.lookup_name] % rhs
Exception Type: TypeError at /accounts/signup/
Exception Value: * wants int