I'm almost throwing in the towel with overriding the template. There not way it works for me. Always it's looking the template in the default directory:
/Library/Python/2.7/site-packages/allauth/templates/account
I have try almost all that I found: https://stackoverflow.com/a/18811664/3348531 https://stackoverflow.com/a/40065009/3348531
my dir structure:
myproject
myproject
myapp
templates
accounts
login.html
...
But I also try:
myproject
myproject
myapp
templates
myapp
accounts
login.html
...
Nothing work
--urls.py
urlpatterns = [
url(r'^accounts/', include('allauth.urls')),
...
--settings.py
INSTALLED_APPS = [
'formimmapp.apps.FormimmappConfig',
'django.contrib.sites',
'allauth',
'allauth.account',
'allauth.socialaccount',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'formtools',
'crispy_forms',
]
TEMPLATE_DIRS = (os.path.join(PROJECT_DIR, 'templates'),)
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
# 'DIRS': [os.path.join(BASE_DIR,'templates')],
'DIRS': [os.path.join(PROJECT_DIR, 'templates')],
# 'DIRS': [],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
],
},
},
]
Django Version
1.10.1