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'),

2021-05-14 21:37 GMT-04:00, jatinhunter <[email protected]>:
> Url name or url pattern is incorrect
>
>
> On Fri, 7 May 2021, 2:56 pm Kasper Laudrup, <[email protected]> wrote:
>
>> 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 [email protected]
>> > <mailto:[email protected]>.
>> > 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
>> >.
>>
>> --
>> 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 [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/a7d1f22d-15e9-1a53-77ec-aa1fea4d4bbd%40stacktrace.dk
>> .
>>
>
> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAPXsoruQje%3DBAq5pzLFYMWz-HUVUdK%3Dy%2BJ_WDT5zKrO2J7UqpA%40mail.gmail.com.
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAObPVPDJzd4V1xTF1Cc24DG4sVxSqOBi-gAJjLspim2DYgCEOQ%40mail.gmail.com.

Reply via email to