[Answer]-Login, 2 views, 1 template – DJANGO

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

Leave a comment