title: In Django allow only admin user to access views
body: <p>I have a dashboard app in Django 1.10. I want to restrict access to this app's views to admin user only, if user is not logged in then redirect him to admin's login page.</p>
  
  <p>This is where I want to apply some kind of logic so that only admin user can see links that starts with /dashboard/</p>
  
  <blockquote>
    <p>url(r'^dashboard/', include('demo.dashboard.urls', namespace='dashboard'))</p>
  </blockquote>