Skip to content

Instantly share code, notes, and snippets.

@muhtar05
Created July 24, 2019 23:04
from django.shortcuts import redirect
from .tasks import endure_ten_seconds
def generate_report(request):
#Do something
endure_ten_seconds()
return redirect('/')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment