Comments (4)
Am facing this also! It's simple
from celery.decorators import periodic_task
from django-plans.
If any one encounters this kind of error, the issue is quick easy to fix
- Solution 1 Disable autodiscover_tasks
#app.autodiscover_tasks(related_name="tasks")
This will ensure that celery does not scan for apps to find task to added, in this case the buggy plan.tasks won't be added also, because celery is not scanning for tasks in installed apps.
Though ensure that you set this variable
CELERY_IMPORTS = [ your tasks for celery to import ]
- Solution 2 Define which apps should be auto discored.
APPS_TO_FIND_TASKS = [ "app1", "app2, "app3", "app4"] # This can be handy if you have other thirdparty apps that you want to be automatically auto-discovered while rejecting others.
app.autodiscover_tasks(packages=APPS_TO_FIND_TASKS, related_name="tasks")
from django-plans.
I have explained why it would be better to completely drop celery from the code base.
#140 (comment)
Probably it would be better to leave some text in the docs to guide user how to run the management commands or use celery or a hint to Celery related docs page.
from django-plans.
The Celery dependency should be removed now.
from django-plans.
Related Issues (20)
- Use with django_rest_framework HOT 1
- Duplicated invoice numbers HOT 2
- TAX is applied if the user fills in VAT ID without country code
- Add support for Django 3.2 HOT 1
- Migrating to Github Actions HOT 3
- Automatic publish to PyPI HOT 18
- Python 3.9, 3.10 support (install fails with `vatnumber`) HOT 3
- [bug] geolite2 missing from requirements
- Problem with Migrations
- Django plans cause error in sqlite3 backend HOT 2
- Demo project not work HOT 7
- Implement the multi user capability for one billing info HOT 1
- Implementing the price per unit
- Documentation incorrect and/or outdate
- Add support for trial plan
- Add ecomerce tracking to complete order HOT 2
- UNIQUE constraint failed: plans_plan.default HOT 2
- stripe and paypal HOT 3
- Quota.codename should be SlugField HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-plans.