i\'m using Django 1.10 and i want to add the allauth\'s app for login, signin, etc, to my website. I\'ve installed allauth from pip, and tried to put the templates from alla
Allauth templates can be overridden just like the normal template overriding methods.
TEMPLATE_DIRS = (
os.path.join(BASE_DIR,'templates'), os.path.join(BASE_DIR,'templates'))
Your template directory will be in project directory. Go inside your template directory and create a directory named allauth, inside allauth create a template directory and inside that create a directory accounts
Create html files with same name as allauth templates. Refer to allauth github repository for more info on template names.
I use django 3.0.4 with django-allauth 0.41.0
Add folder templates
in your project directory.
Inside the folder templates
add another folder with the app_name
, in the case of the template login.html
you'll create a folder accounts
so the full path will be
/project_name/templates/accounts/login.html
my TEMPLATE Dirs in settings.py
remain the same
'DIRS': [os.path.join(BASE_DIR, 'templates')]
django-allauth doc templates