Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

login_required on class django

You can add the decorator in the urls.py

from django.contrib.auth.decorators import login_required
 url(r'^workers/$', login_required(views.RootWorkerView.as_view()))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #class #django
ADD COMMENT
Topic
Name
5+2 =