gmuj/django-postman-sample

Redirect to login page if user is not logged in

Closed this issue · 2 comments

For now, if we access the inbox url http://127.0.0.1:8000/messages/inbox/ without login then it throws Page Not Found error.

see screenshot:
screen shot 2018-10-13 at 3 21 14 pm

Is there any way that we can redirect to the login page instead of redirecting to Page Not Found page?

gmuj commented

@Rabia23 Fixed now....however this is just a sample project and it's really old, I was just playing around with postman to learn.

Hi @mgaby25,

Thank you for taking this thing into your consideration. I was also learning the postman.