any middleware in django to perform the abilities of security.yml in symfony2?
<p>Can i declare the auth for all the apis in django,
group wise from one file just like <a href="http://symfony.com/doc/current/security/access_control.html" rel="nofollow">security.yml</a> allows us in symfony2</p>

<p>Have a look at the package <a href="https://github.com/mgrouchy/django-stronghold" rel="nofollow">django-stronghold</a>. It allows you to require login for all views.</p>

python django symfony2 django-middleware