I wrote this variable(refactor) in my context dict.
@login_required(login_url=\'/login\') def lessont(request, id): if request.method == \'POST\': form =