내보기 일부 계산을 수행 한 다음 그 결과를 바탕으로 성공 메시지를 표시 할 수있는 새 페이지를 표시 한 다음 자동으로 3 초 후에 다른 페이지로 리디렉션합니다 url.django에서 2 연속 리디렉션을 수행하는 방법
def home(request):
#do some calculation
return HttpResponse('success') # and after 3 seconds it will redirect to new page.
# here I dont know how to proceed further
또는
이 HTML과 함께하고있다def home(request):
#do some calculation
return render(request, template) # and after 3 seconds it will redirect to new page.
# here I dont know how to proceed further
왜 내 대답을 방금 변경 했습니까? 다른 것보다 더 나쁜가? 나는 다른 사람보다 훨씬 더 설명해 주었다고 생각합니다. –
J. C. Rocamonde 당신의 대답이 더 좋았습니다. 당신과 동의합니다. –