小编Ped*_*tos的帖子

Django Allauth - ModuleNotFoundError:即使正确安装了 django-allauth,也没有名为“allauth.account.middleware”的模块

“ModuleNotFoundError:没有名为“allauth.account.middleware”的模块”

即使 django-allauth 已全部安装和设置,我仍然在 django 项目中收到此错误???

我什至尝试重新安装并将我的 python 更改为 python3 但没有更改任何内容,无法弄清楚为什么所有其他导入都可以工作,但中间件导入......

请帮忙?

设置.py:

"""
Django settings for youtube2blog2 project.

Generated by 'django-admin startproject' using Django 4.2.4.

For more information on this file, see

For the full list of settings and their values, see
"""

from pathlib import Path
import django
import os
import logging
import pyfiglet

import allauth

# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent


# Quick-start development settings - unsuitable for production …
Run Code Online (Sandbox Code Playgroud)

python django django-settings python-3.x django-allauth

7
推荐指数
2
解决办法
9349
查看次数