При отправке письма с восстановлением пароля вылезает эта ошибка.
Internal Server Error: /users/password_reset/
Traceback (most recent call last):
File "/home/stas/PycharmProjects/pythonProject/venv/lib/python3.8/site-packages/django/core/handlers/exception.py", line 55, in inner
response = get_response(request)
File "/home/stas/PycharmProjects/pythonProject/venv/lib/python3.8/site-packages/django/core/handlers/base.py", line 197, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/stas/PycharmProjects/pythonProject/venv/lib/python3.8/site-packages/django/views/generic/base.py", line 84, in view
return self.dispatch(request, *args, **kwargs)
File "/home/stas/PycharmProjects/pythonProject/venv/lib/python3.8/site-packages/django/utils/decorators.py", line 46, in _wrapper
return bound_method(*args, **kwargs)
File "/home/stas/PycharmProjects/pythonProject/venv/lib/python3.8/site-packages/django/utils/decorators.py", line 133, in _wrapped_view
response = view_func(request, *args, **kwargs)
File "/home/stas/PycharmProjects/pythonProject/venv/lib/python3.8/site-packages/django/contrib/auth/views.py", line 232, in dispatch
return super().dispatch(*args, **kwargs)
File "/home/stas/PycharmProjects/pythonProject/venv/lib/python3.8/site-packages/django/views/generic/base.py", line 119, in dispatch
return handler(request, *args, **kwargs)
File "/home/stas/PycharmProjects/pythonProject/venv/lib/python3.8/site-packages/django/views/generic/edit.py", line 153, in post
return self.form_valid(form)
File "/home/stas/PycharmProjects/pythonProject/venv/lib/python3.8/site-packages/django/contrib/auth/views.py", line 245, in form_valid
form.save(**opts)
File "/home/stas/PycharmProjects/pythonProject/venv/lib/python3.8/site-packages/django/contrib/auth/forms.py", line 343, in save
self.send_mail(
File "/home/stas/PycharmProjects/pythonProject/venv/lib/python3.8/site-packages/django/contrib/auth/forms.py", line 284, in send_mail
email_message.send()
File "/home/stas/PycharmProjects/pythonProject/venv/lib/python3.8/site-packages/django/core/mail/message.py", line 298, in send
return self.get_connection(fail_silently).send_messages([self])
File "/home/stas/PycharmProjects/pythonProject/venv/lib/python3.8/site-packages/django/core/mail/message.py", line 255, in get_connection
self.connection = get_connection(fail_silently=fail_silently)
File "/home/stas/PycharmProjects/pythonProject/venv/lib/python3.8/site-packages/django/core/mail/__init__.py", line 50, in get_connection
klass = import_string(backend or settings.EMAIL_BACKEND)
File "/home/stas/PycharmProjects/pythonProject/venv/lib/python3.8/site-packages/django/utils/module_loading.py", line 30, in import_string
return cached_import(module_path, class_name)
File "/home/stas/PycharmProjects/pythonProject/venv/lib/python3.8/site-packages/django/utils/module_loading.py", line 15, in cached_import
import_module(module_path)
File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 961, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 961, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 961, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 961, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 973, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'djando'