Check if a function has a decorator
It seems that your situation is as follows:
1. You have pages that are secured and behind a login-required decorator
2. You have pages that are non-secure and can be visited in both a logged-in state and anonymous state.
If I understand your requirements, you want a user to be redirected to Main Page (Assuming this to be the Welcome Page that can be visited in both a logged-in and Anonymous state) when a user logs out.
Why wouldn't you just limit the user's ability to logout from only secure pages, and then set your redirect_url on logout to the welcome screen?
My question is a general one, but specifically my application is the login_required decorator for Django.
I'm curious if there is a way to check if a view/function has a specific decorator (in this case the login_required decorator)
I am redirecting after logging a user out, and I want to redirect to the main page if the page they are currently on has the login_required decorator.  My searches have yielded no results so far.