Celery 3.1 DocumentationExample Basics You can easily create a task from any callable by using the task() decorator: from .models import User @app.task def create_user(username, password): User.objects.create(username=username task that automatically expands some abbreviations in it: class Article(models.Model): title = models.CharField() body = models.TextField() @app.task def expand_abbreviations(article): article blog posts. I’ll describe parts of the models/views and tasks for this application. blog/models.py The comment model looks like this: from django.db import models from django.utils.translation import0 码力 | 887 页 | 1.22 MB | 1 年前3
Celery 3.1 Documentationusing the task() decorator: 50 Chapter 2. Contents Celery Documentation, Release 3.1.25 from .models import User @app.task def create_user(username, password): User.objects.create(username=username task that automatically expands some abbreviations in it: class Article(models.Model): title = models.CharField() body = models.TextField() @app.task def expand_abbreviations(article): article.body.replace('MyCorp' blog posts. I’ll describe parts of the models/views and tasks for this application. blog/models.py The comment model looks like this: from django.db import models from django.utils.translation import0 码力 | 607 页 | 2.27 MB | 1 年前3
Celery v4.0.1 DocumentationExample Basics You can easily create a task from any callable by using the task() decorator: from .models import User @app.task def create_user(username, password): User.objects.create(username=username task that automatically expands some abbreviations in it: class Article(models.Model): title = models.CharField() body = models.TextField() @app.task def expand_abbreviations(article): article blog posts. I’ll describe parts of the models/views and tasks for this application. blog/models.py The comment model looks like this: from django.db import models from django.utils.translation import0 码力 | 1040 页 | 1.37 MB | 1 年前3
Celery v4.0.2 DocumentationExample Basics You can easily create a task from any callable by using the task() decorator: from .models import User @app.task def create_user(username, password): User.objects.create(username=username task that automatically expands some abbreviations in it: class Article(models.Model): title = models.CharField() body = models.TextField() @app.task def expand_abbreviations(article): article blog posts. I’ll describe parts of the models/views and tasks for this application. blog/models.py The comment model looks like this: from django.db import models from django.utils.translation import0 码力 | 1042 页 | 1.37 MB | 1 年前3
Celery v4.1.0 DocumentationExample Basics You can easily create a task from any callable by using the task() decorator: from .models import User @app.task def create_user(username, password): User.objects.create(username=username task that automatically expands some abbreviations in it: class Article(models.Model): title = models.CharField() body = models.TextField() @app.task def expand_abbreviations(article): article blog posts. I’ll describe parts of the models/views and tasks for this application. blog/models.py The comment model looks like this: from django.db import models from django.utils.translation import0 码力 | 1057 页 | 1.35 MB | 1 年前3
Celery 4.0 DocumentationExample Basics You can easily create a task from any callable by using the task() decorator: from .models import User @app.task def create_user(username, password): User.objects.create(username=username task that automatically expands some abbreviations in it: class Article(models.Model): title = models.CharField() body = models.TextField() @app.task def expand_abbreviations(article): article blog posts. I’ll describe parts of the models/views and tasks for this application. blog/models.py The comment model looks like this: from django.db import models from django.utils.translation import0 码力 | 1042 页 | 1.37 MB | 1 年前3
Celery 3.0 DocumentationExample Basics You can easily create a task from any callable by using the task() decorator: from .models import User @app.task 2.3. User Guide 45 Celery Documentation, Release 4.0.0 def create_user(username task that automatically expands some abbreviations in it: class Article(models.Model): title = models.CharField() body = models.TextField() @app.task def expand_abbreviations(article): article.body.replace('MyCorp' blog posts. I’ll describe parts of the models/views and tasks for this application. blog/models.py The comment model looks like this: from django.db import models from django.utils.translation import0 码力 | 703 页 | 2.60 MB | 1 年前3
Celery v4.1.0 DocumentationExample Basics You can easily create a task from any callable by using the task() decorator: from .models import User @app.task def create_user(username, password): User.objects.create(username=username task that automatically expands some abbreviations in it: class Article(models.Model): title = models.CharField() body = models.TextField() @app.task def expand_abbreviations(article): article.body.replace('MyCorp' blog posts. I’ll describe parts of the models/views and tasks for this application. blog/models.py The comment model looks like this: from django.db import models from django.utils.translation import0 码力 | 714 页 | 2.63 MB | 1 年前3
Celery v4.0.1 DocumentationExample Basics You can easily create a task from any callable by using the task() decorator: from .models import User @app.task def create_user(username, password): User.objects.create(username=username task that automatically expands some abbreviations in it: class Article(models.Model): title = models.CharField() body = models.TextField() @app.task def expand_abbreviations(article): article.body.replace('MyCorp' blog posts. I’ll describe parts of the models/views and tasks for this application. blog/models.py The comment model looks like this: from django.db import models from django.utils.translation import0 码力 | 705 页 | 2.63 MB | 1 年前3
Celery v4.0.0 DocumentationExample Basics You can easily create a task from any callable by using the task() decorator: from .models import User @app.task 2.3. User Guide 45 Celery Documentation, Release 4.0.0 def create_user(username task that automatically expands some abbreviations in it: class Article(models.Model): title = models.CharField() body = models.TextField() @app.task def expand_abbreviations(article): article.body.replace('MyCorp' blog posts. I’ll describe parts of the models/views and tasks for this application. blog/models.py The comment model looks like this: from django.db import models from django.utils.translation import0 码力 | 701 页 | 2.59 MB | 1 年前3
共 51 条
- 1
- 2
- 3
- 4
- 5
- 6













