My Django application already has an app called account
. Does it mean that it is ABSOLUTELY impossible to use django all-auth
because of the name conflict? Due to the existing data, the app account
cannot be renamed.
settings.py:
INSTALLED_APPS = [
...
'account',
...
# For allauth:
'django.contrib.sites',
'allauth',
'allauth.account', # Name conflict
...
If so, is there a good alternative?
- 2-14
Per solarissmoke's suggestion. Where should I put the new app and what is it name? Is it something like this (Of course, it is wrong)?
my_project/account/apps.py
:
import allauth.account
from django.apps import AppConfig
class AccountConfig(AppConfig):
name = 'account'
class AllAuthAccountConfig(allauth.account):
name = 'allauth.account'
label = 'allauth_account' # Change this
verbose_name = 'aullauth_account'