Comments (4)
Hi!
django-cc it's a library. You need to create your own project and add it to it.
Here tst - it's a name of your project. Your setup will be different.
Cheers
from django-cc.
i did create my own project and add library into. i got Currency model in db. so than i need to run tasks.py with celery to get it running ?
from django-cc.
After you created your project, you need to setup celery in it.
for example I have this celery.py config in my django project
from __future__ import absolute_import
import os
from celery import Celery
from django.conf import settings
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'tst.settings')
CELERY_BROKER = getattr(
settings,
'CELERY_BROKER',
'redis://localhost:6379/5')
app = Celery('tst', broker=CELERY_BROKER)
app.config_from_object('django.conf:settings')
app.autodiscover_tasks(lambda: settings.INSTALLED_APPS)
@app.task(bind=True)
def debug_task(self):
print('Request: {0!r}'.format(self.request))
then
celery worker -A tst.celery.app
read celery docs for more info
from django-cc.
Error:
Unable to load celery application.
The module dailyfresh was not found.
My celery configure like this:
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'dailyfresh.settings')
django.setup()
from goods.models import *
from django_redis import get_redis_connection
app = Celery('celery_tasks.tasks', broker='redis://127.0.0.1:6379/0')
from django-cc.
Related Issues (20)
- start ui error HOT 4
- Missing documentation? HOT 1
- Support for shielded transactions HOT 3
- Support USDT HOT 1
- celery call cc.tasks.refill_addresses_queue don't work HOT 5
- How i insert this address on a view HOT 37
- When adding a new currency, what should "last_block" be? HOT 1
- refill_address_queue key error HOT 1
- Generation of new address HOT 5
- running celery tasks as celery beat task HOT 5
- Improve documentation
- Negative balance HOT 1
- Multisig transactions HOT 1
- monero support HOT 2
- Any plans to add bech32 validator support? HOT 1
- Multi-sig supported? HOT 1
- kkk
- Thread or process safety issues HOT 1
- docker-compose start HOT 2
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-cc.