fcurella / django-recommends

A django app that builds item-based suggestions for users.
django-recommends.rtfd.org
MIT License
201 stars 64 forks source link

Migrations fail #44

Open iragm opened 3 years ago

iragm commented 3 years ago
pip3 install django-recommends
pip3 install celery
python3 manage.py makemigrations
ImportError raised when trying to load 'recommends.templatetags.recommends': No module named 'celery.task'

Looks like this is deprecated: https://github.com/celery/celery/issues/6406

TareqMonwer commented 3 years ago

I'm also facing the same issue. Is there any solution available for this issue?

fcurella commented 3 years ago

I've started a PR to replace the import and upgrade the celery requirement.

One issue I need to figure out is how to set up the periodic task, since I don't have access to the user's Celery app. Maybe we just need to document it and have the users set up the schedule manually.

TareqMonwer commented 3 years ago

I don't have any other idea as well. It can be a bit of a setup for newcomers.