1👍
Views don’t work like that.
You can’t include a template and expect it to somehow call a view. A template doesn’t have its own view, and templates generally don’t know or care which views they’re called from. Including “connexion.html” just renders it with the current template context, and in this case that doesn’t have any variable named “form”.
If you want to include a template with a custom context, you need to use an inclusion template tag.
0👍
In locals(), there are form and all variables;
The error is in bootstrap|form in connexion.html but I dont know where
- [Answer]-Returning PNG with Django 1.7
- [Answer]-How to change the ManyToManyField widget?
- [Answer]-AttributeError when establishing a foreign key using the to_field option
- [Answer]-Force Django template to render curly brace values?
- [Answer]-Why do we need fields value in Meta class in Django forms?
Source:stackexchange.com