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.
This is where I want to apply some kind of logic so that only admin user can see links that starts with /dashboard/
url(r'^dashboard/', include('demo.dashboard.urls', namespace='dashboard'))