@login_required
def generate_identity(request):
 return redirect('httptester', randint(111111, 999999))

@ login_required def generate_identity ( request ) : return redirect ( 'httptester' , randint ( 111111 , 999999 ) )
simple view to generate a random identity .