I try to use django-allauth.
It works but i want to overwrite defaults templates.
So, under _templates. I created account/login.html.
the path is ok for django-allauth but i have this erro :
TemplateSyntaxError at /accounts/login/
Invalid template name in 'extends' tag: ''. Got this from the 'layout' variable.
It don't find : {% extends layout %}
How to solve it please ?
Regards
This is just the information I am finding everywhere. Thanks for your blog, I just subscribe your blog. This is a nice blog..
Hi! This is my first visit to your blog! We are a group of volunteers and starting a new project in a community in the same niche. Your blog provided us beneficial information to work on. You have done a extraordinary job!JavaBurn
Your work is very good and I appreciate you and hopping for some more informative posts. Thank you for sharing great information to us.faktor
This type of message always inspiring and I prefer to read quality content, so happy to find good place to many here in the post, the writing is just great, thanks for the post.slot gacor
J’aime cette prise de vue mais j’en ai deja vu de semblable de meilleures attributs?v9bet
You're welcome! If you have any more questions or need further assistance, please don't hesitate to ask.
I apologise for the delay. To address the issue with the TemplateSyntaxError and the layout variable in django-allauth when trying to override default templates, you can follow these steps:
Check Default Layout Variable:
The error indicates that it's trying to find the layout variable, but it's not provided. By default, the layout variable is set globally in the file /django_demo1/starterkit/_keenthemes/__init__.py like this:
context.update({
"layout": KTTheme.setLayout("default.html", context),
})
from django.shortcuts import render
def my_login_view(request):
# Your view logic here
context = {
# Other context variables
"layout": "your_custom_layout.html", # Set your custom layout here
}
return render(request, "account/login.html", context)
thank you Faizal