Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to import login required in django

from django.contrib.auth.decorators import login_required

@login_required(login_url='/example url you want redirect/')
 
PREVIOUS NEXT
Tagged: #import #login #required #django
ADD COMMENT
Topic
Name
3+6 =