NoReverseMatch error when user is logged out

14 views
Skip to first unread message

Tushar Verma

unread,
Mar 28, 2020, 10:53:52 AM3/28/20
to Django users
A really strange error is occurring in my project 

what.png

normally when a user or superuser is logged in every page is happily accessible but as soon as the user is logged out  '/result/<int:movie_id>/detail' start showing NoReverseMatch error pointing to line 8 of template base.html

error.png


As It is working one way I;e while any user is logged in, I can assure you that there is no view or URL related error in my code and also no decorators like @login_required or anything similar to that is being used please help me .....


I have attached important files If you would like to see them..
settings.py
base.html
urls.py
views.py
details.html
results.html
Reply all
Reply to author
Forward
0 new messages