I'm trying to add a link to another page on my index page, but when I use {% url 'blog:BlogAbout' %} I get:
Exception Type: NoReverseMatch
Exception Value:'blog' is not a registered namespace
index.html:
<a href="{% url 'blog:BlogAbout' %}">About Me</a>
blog.urls.py:
path('about/', views.about, name="BlogAbout"),
blog.views.py:
def about(request):
return render(request, 'blog/about.html')
urls.py:
path('', include('blog.urls')),
The question is almost familiar to this: How do I add link to another page [Django 3.0]? Reverse not found
I'm doing it like there but I still get an error. What is the right way to add the link?