why i am getting these error i dont know plz solve...

23 views
Skip to first unread message

Phani Deep

unread,
May 7, 2021, 4:25:00 AM5/7/21
to django...@googlegroups.com

NoReverseMatch
Reverse for 'album_detail' with arguments '('', <Album: user_15>)' not found. 1 pattern(s) tried: ['@(?P<username>[^/]+)/album/(?P<album>[^/]+)/$']

Kasper Laudrup

unread,
May 7, 2021, 5:11:51 AM5/7/21
to django...@googlegroups.com
On 07/05/2021 10.23, Phani Deep wrote:
>
> NoReverseMatch
>
>
> Reverse for 'album_detail' with arguments '('', <Album: user_15>)' not found. 1 pattern(s) tried: ['@(?P<username>[^/]+)/album/(?P<album>[^/]+)/$']
>

This will guide you towards a solution:

https://betterprogramming.pub/how-to-ask-questions-about-programming-dcd948fcd2bd

Kind regards,

Kasper Laudrup


>
> --
> You received this message because you are subscribed to the Google
> Groups "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to django-users...@googlegroups.com
> <mailto:django-users...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CANec_ReVnw%2Bn3ss4UbhVLaZeZxobLzXUgMdG-T5bN7vze8%2Bd0w%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CANec_ReVnw%2Bn3ss4UbhVLaZeZxobLzXUgMdG-T5bN7vze8%2Bd0w%40mail.gmail.com?utm_medium=email&utm_source=footer>.

OpenPGP_signature

jatinhunter

unread,
May 15, 2021, 9:27:10 AM5/15/21
to django...@googlegroups.com
Url name or url pattern is incorrect


To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/a7d1f22d-15e9-1a53-77ec-aa1fea4d4bbd%40stacktrace.dk.

Boris Pérez

unread,
May 15, 2021, 6:33:56 PM5/15/21
to django...@googlegroups.com
hi, i think you are calling your view incorrectly...u need to pass 2
arguments , first: username and the album_id, then you url may be
declared like thisÑ
path('<str:username>/album/<int:album_id>/details',
views.album_details, name='album_details'),
> https://groups.google.com/d/msgid/django-users/CAPXsoruQje%3DBAq5pzLFYMWz-HUVUdK%3Dy%2BJ_WDT5zKrO2J7UqpA%40mail.gmail.com.
>
Reply all
Reply to author
Forward
0 new messages