Last active
July 27, 2019 08:38
-
-
Save Hassanzadeh-sd/8c125e63d21b3ad557c98c36bfe23e78 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.shortcuts import HttpResponse | |
from .tasks import celery_task | |
def celery_view(request): | |
for counter in range(2): | |
celery_task.delay(counter) | |
return HttpResponse("FINISH PAGE LOAD") | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment