0

enter image description here

I'm trying to inherit index.html and form.html from base.html. But all the time I'm undone. Please give me a solution. I'm learning Django, new in this field. Thanks in advance

1 Answers1

0

Good day, it is not a problem of the inheritance, you have a not a registered namespace error. Some where in your templates you have a link with something like this:

<a href={% url 'new_app:home' %}>Home</a>

But you haven't registered new_app namespace in your include statement in the urls.py

Remover new_app: from your template urls:

<a href={% url 'home' %}>Home</a>

More is here: Django - is not a registered namespace

akun.dev
  • 329
  • 1
  • 5