I have been working on completing the Python Mastery course and I’m stuck on the adding a home page section. I’m receiving a No Reverse Match error. I have gone back and double checked the code and all seems correct.
The error:
<a href="{% url 'movies:index' %}">View All Movies</a>
File name: urls.py(movies)
from django.urls import path
from . import views
app_name = ‘movies’
urlpatterns = [
path('movies/',views.index)
]
File name: home.html
{% extends ‘base.html’ %}
{% block content %}
<a href="{% url 'movies:index' %}">View All Movies</a>
{% endblock %}