django.core.exceptions.ImproperlyConfigured:应用程序标签不唯一,重复:帐户

时间:2019-04-19 05:00:16

标签: python-3.x django-allauth django-1.10

运行错误提示:

  

django.core.exceptions.ImproperlyConfigured:应用程序标签不正确   唯一的重复项:帐户

我已经设置了一个“帐户”,现在系统提示我重复进行上述操作以解决上述错误。


INSTALLED_APPS = [
    'django.contrib.admin',
    # must APP
    'django.contrib.auth',
    'django.contrib.sites',
    'allauth',
    'allauth.account',
    'allauth.socialaccount',
    # must APP
    # weibo、github和weixin
    'allauth.socialaccount.providers.weibo',
    'allauth.socialaccount.providers.github',
    'allauth.socialaccount.providers.weixin',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    # APP
    'blog',
    'account',
    'password_reset',
    'article',

]

# django-allauth setting
AUTHENTICATION_BACKENDS = (
# django admin django-allauth
    'django.contrib.auth.backends.ModelBackend',

# `allauth` specific authentication methods, such as login by e-mail
    'allauth.account.auth_backends.AuthenticationBackend',
)

# setting SITE_ID
SITE_ID = 1
ACCOUNT_AUTHENTICATION_METHOD = 'username_email'
ACCOUNT_EMAIL_REQUIRED = True

0 个答案:

没有答案