Django error: Reverse for 'with arguments' (',) 'not found.

python 3.6 Django 2.0.4 url matching error when developing a website,
want to help me point out the mistake:
NoReverseMatch at / CetTopic/

Reverse for "personal_info" with arguments" (",) "not found. 1 pattern (s) tried: ["CetPersInfo/ (? P < topic_id >\ d +) $"]

clipboard.png

url:


views:


html:


clipboard.png

Apply CET:

clipboard.png

:

clipboard.png

Mar.10,2021

Yes, there is something wrong with your url configuration. Try this
from django.urls import re_path
re_path ('CetPersInfo/ (? P < topic_id > d +) /', views.personal_info,name='personal_info'). In fact, all versions of Django2.0 and above use this format.


Brother, you NoReverseMatch at /
Reverse for 'category-list' with arguments' (',) 'not found. 1 how is the pattern (s) tried: Django problem solved finally

Menu