jeudi 20 mai 2021

Django extend base.html work on all pages but one

Today i tried to setup Django authentification on an app and it's working a 99%.

The registration and login are working perfectly but i have a problem on the userprofile page.

Registration, login and userprofile templates all have the extends base.html and it's working for the registration and login, but on the userprofile page i get an error saying that the source base.html can't be round.

Strangest thing is that the path value that Django trie is the correct one, same as the other two templates.

This is the structure of my templates folder :

Templates Account Registration.html Login.html Userprofile.html Base Base.html

Most of the post if have found about extend base error usualy incombe the extend not working at all or not working in one folder but working in the others where mine work for two templates out of 3 in the same folder.

I tried to remove most of the code in my userprofile template to see if anything was messing with the extend but even there i get the same error.




Aucun commentaire:

Enregistrer un commentaire