title: Allow access to only non-logged in user in django
body: <p>In django how can I prevent certain pages to be displayed to the logged in user. For example login page, signup page. That is I would like to prevent logged in user to reach login and signup pages.</p>
  
  <p>One way of doing it would be to write my own view for login and in that view check if user has already logged in, and if he is, redirect to some other page. </p>
  
  <p>Is there a better way to achieve this? Like some decorator?</p>