Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Reverse for 'detail' with arguments '('2022/11/29/oddballers-29112022',)' not found. 1 pattern(s) tried: ['page/(?P<key>[^/]+)\\\\Z']

I’m getting error NoReverseMatch at /, here I’m trying to catch the key like this
enter image description here

and I can’t get the key, when I take it and an error like the one above comes out

The code details are like this:

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

enter image description here

enter image description here

detail error like this:
enter image description here

thank you.

what I want is to capture the key and then I make it as a parameter for the details of the article, when I catch the key but what comes out is an error.. sorry if my English is difficult to understand, I’m not good at English

>Solution :

Use the path path converter instead of str if you wish to pass/capture values containing forward slash in your urls

urlpatterns = [
    path('page/<path:key>', detailt_page, name='detail'),
]
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading