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
Asked
Active
Viewed 37 times
0
-
Remove image a post code. – Ahtisham Jan 27 '22 at 04:46
1 Answers
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
-
-
@ShishirRehan, please take a loot here: https://github.com/almazkun/django_app, it is working, or push to the GitHub and share the code. – akun.dev Jan 28 '22 at 00:52
