Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

django request user

def my_view(request):
    if not request.user.is_authenticated:
        return render(request, 'myapp/login_error.html')
 
PREVIOUS NEXT
Tagged: #django #request #user
ADD COMMENT
Topic
Name
3+4 =