Я продолжаю сталкиваться с сообщением об ошибке:
Страница не найдена (404) Метод запроса: GET URL запроса: http://127.0.0.1: 8000 / teacher / app-instructor-billing. html
Я знаю, что это, как правило, означает, что я не настроил правильно сконфигурированный файл urls.py, чтобы он возвращал представление для указанного пути. Однако, насколько я понимаю, я сделал это, и я все еще получаю это сообщение об ошибке
Вот мой urls.py
path('teachers/', include(([
path('', teachers.QuizListView.as_view(), name='app-instructor-dashboard'),
path('logout', teachers.logout_request, name="logout"),
path('edit_user', teachers.edit_user, name='edit_user'),
path('billing', teachers.billing_info, name='app-instructor-billing'),
path('mentor_messages/', teachers.mentor_messages, name='mentor_messages'),
], 'classroom'), namespace='teachers')),
Вот мой views.py (teacher.py) :
@method_decorator([login_required, teacher_required], name='dispatch')
def billing_info(request):
return render(request, 'classroom/teachers/app-instructor-billing.html')
и мой html:
<li><a href="{% url 'teachers:billing' %}">Edit Billing</a></li>