Validation module that uses LDAP data to validade CMC users.
Add "cmcldapauth" to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [ ... 'autentica', ]
Include the polls URLconf in your project urls.py like this:
url(r'^autentica/', include('autentica.urls', namespace='autentica')),
Run python manage.py migrate to create the module models.
Add login restriction
4.1. In your class based view :
- class ClassName(CMCLoginRequired, ...):
- or
class ClassName(CMCAdminLoginRequired, ...):
4.2. In your method :
@login_required def your_method(request):