<filename>django_celery/api/celery_task_results/urls.py
from django.urls import path
from django_celery.api.celery_task_results import views


app_name = "api"

urlpatterns = [
    path("celery", view=views.get_celery_task_results, name="celery_tasks"),
    path("nomal", view=views.get_task_results, name="nomal_tasks"),
    path("statistic-covid", view=views.get_statistic_covid, name="get_statistic_covid"),
    path("users-count", view=views.get_users_count, name="users_count"),
    path("cancel-task", view=views.cancel_task, name="cancel_tasks"),
]

<filename>django_celery/api/celery_task_results/urls.py
from django.urls import path
from django_celery.api.celery_task_results import views


app_name = "api"

urlpatterns = [
    path("celery", view=views.get_celery_task_results, name="celery_tasks"),
    path("nomal", view=views.get_task_results, name="nomal_tasks"),
    path("statistic-covid", view=views.get_statistic_covid, name="get_statistic_covid"),
    path("users-count", view=views.get_users_count, name="users_count"),
    path("cancel-task", view=views.cancel_task, name="cancel_tasks"),
]
