Problem with template inheritance in Django

0

I'm starting in Django. I created a html base with three divs: one at the top of the page where I placed a header, one to the left with a vertical menu and a larger one to receive the contents of the other pages. I have created the other pages by inheriting this base.html.

Inheritance has worked, but when you access the menu the second time an error occurs, because the URL that should be templates / polls / cadastros.html becomes templates / polls / templates / polls / cadastros.html.

In the link tag the URL is: href="templates / polls / cadastros.html"

I noticed several sites with similar layout. In them, when I move the mouse over the link I realize that they never change regardless of how many times it is accessed.

Thanks to anyone who can help.

    
asked by anonymous 21.08.2018 / 04:50

0 answers