[英]ModuleNotFoundError: No module named 'allauth'
This is my installed app. 这是我安装的应用程序。
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.sites',
'allauth',
'allauth.account',
'allauth.socialaccount',
'rest_framework',
'rest_framework.authtoken',
'rest_auth',
'rest_auth.registration',
'corsheaders',
'articles',
]
I am using django 2.1 and rest framework.I want to implement rest auth registration. 我正在使用django 2.1和rest框架。我想实现rest auth注册。 So I have followed this step by step guidelines from official documentation .
因此,我遵循了官方文档中的分步指南。 When I hit enter the migrate command
python manage.py migrate
I am getting following error: 当我点击输入迁移命令
python manage.py migrate
时,出现以下错误:
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'allauth'
Before migrate you need to install the django rest auth packages which contain all packages including allauth 迁移之前,您需要安装django rest auth软件包,其中包含所有软件包,包括allauth
pip install django-rest-auth[with_social]
and then migrate your database. 然后迁移数据库。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.