django-static-sitemaps icon indicating copy to clipboard operation
django-static-sitemaps copied to clipboard

celery 5 removed previsouly deprecated celery.task module

Open dblado opened this issue 4 years ago • 1 comments

Using celery 5 with latest django-static-sitemaps doesn't work. In celery 4, the celery.tasks module was deprecated and then removed in version 5. You might be able to simply replace:

tasks.py:

from celery.task import PeriodicTask

with

from celery import Task

and

    class GenerateSitemap(PeriodicTask):

with

    class GenerateSitemap(Task):

I haven't tested this.

dblado avatar Nov 20 '20 21:11 dblado

I fixed it on a fork. You can install it using: pip install git+https://github.com/salvacarrion/django-static-sitemaps.git@master

salvacarrion avatar Feb 21 '21 00:02 salvacarrion