© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Aditi Tiwari
passionate to future
login_required is not working please help me with it.
Mayank Aggarwal
Getting into Tech world!
I guess you may not have imported decorators library. Import it and even if it does not work you can use the is_authenticated function which Django authentication provides. Use:- if user.is_authenticated==True: