title: Django: don't let users view views/template if not logged in on admin
body: <p>I'm new to django. I would like to know if is it possible for Anonymous users not to access my views/template page if they are not logged in to django admin?</p>
  
  <p><strong>Example:</strong></p>
  
  <pre><code>localhost/myviews
  localhost/admin
  </code></pre>
  
  <p>Anonymous user access localhost/myviews > authenticate if logged in to admin > if not, throw error</p>