Celery 1.0 Documentationblog posts. We’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 import ugettext_lazy as _ class Comment(models.Model): name = models.CharField(_("name"), max_length=64) email_address = models.EmailField(_("e-mail address")) homepage = models.URLField(_("home page"), comment = models.TextField(_("comment")) pub_date = models.DateTimeField(_("Published date"), editable=False, auto_add_now=True) is_spam = models.BooleanField(_("spam0 码力 | 221 页 | 283.64 KB | 1 年前3
Celery 1.0 Documentationposts. We’ll describe parts of the models/views and tasks for this application. 18 Chapter 2. User Guide Celery Documentation, Release 1.0.6 (stable) blog/models.py The comment model looks like this: django.db import models from django.utils.translation import ugettext_lazy as _ class Comment(models.Model): name = models.CharField(_("name"), max_length=64) email_address = models.EmailField(_("e-mail EmailField(_("e-mail address")) homepage = models.URLField(_("home page"), blank=True, verify_exists=False) comment = models.TextField(_("comment")) pub_date = models.DateTimeField(_("Published date"), editable=False,0 码力 | 123 页 | 400.69 KB | 1 年前3
Celery 2.1 DocumentationPerformance and Strategies Granularity Data locality State Database transactions Example blog/models.py blog/views.py blog/tasks.py This guide gives an overview of how tasks are defined. For a complete task that automatically expands some abbreviations in it: class Article(models.Model): title = models.CharField() body = models.TextField() @task def expand_abbreviations(article): article.body blog posts. We’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 码力 | 463 页 | 861.69 KB | 1 年前3
Celery 2.0 Documentationsomething fails Using a custom retry delay Task options Message and routing options Example blog/models.py blog/views.py blog/tasks.py How it works Tips and Best Practices Ignore results you don’t want blog posts. We’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 import ugettext_lazy as _ class Comment(models.Model): name = models.CharField(_("name"), max_length=64) email_address = models.EmailField(_("e-mail address")) homepage = models.URLField(_("home page"),0 码力 | 284 页 | 332.71 KB | 1 年前3
Celery 2.0 Documentationfails – Using a custom retry delay • Task options – Message and routing options • Example – blog/models.py – blog/views.py – blog/tasks.py • How it works • Tips and Best Practices – Ignore results you blog posts. We’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 import ugettext_lazy as _ class Comment(models.Model): name = models.CharField(_("name"), max_length=64) email_address = models.EmailField(_("e-mail address")) homepage = models.URLField(_("home page"), blank=True0 码力 | 165 页 | 492.43 KB | 1 年前3
Celery 2.2 DocumentationPerformance and Strategies Granularity Data locality State Database transactions Example blog/models.py blog/views.py blog/tasks.py This guide gives an overview of how tasks are defined. For a complete task that automatically expands some abbreviations in it: class Article(models.Model): title = models.CharField() body = models.TextField() @task def expand_abbreviations(article): article.body blog posts. We’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 码力 | 505 页 | 878.66 KB | 1 年前3
Celery 2.3 DocumentationPerformance and Strategies Granularity Data locality State Database transactions Example blog/models.py blog/views.py blog/tasks.py This guide gives an overview of how tasks are defined. For a complete task that automatically expands some abbreviations in it: class Article(models.Model): title = models.CharField() body = models.TextField() @task def expand_abbreviations(article): article.body blog posts. We’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 码力 | 530 页 | 900.64 KB | 1 年前3
Celery 2.5 DocumentationPerformance and Strategies Granularity Data locality State Database transactions Example blog/models.py blog/views.py blog/tasks.py This guide gives an overview of how tasks are defined. For a complete task that automatically expands some abbreviations in it: class Article(models.Model): title = models.CharField() body = models.TextField() @task def expand_abbreviations(article): article.body blog posts. We’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 码力 | 647 页 | 1011.88 KB | 1 年前3
Celery 2.4 DocumentationPerformance and Strategies Granularity Data locality State Database transactions Example blog/models.py blog/views.py blog/tasks.py This guide gives an overview of how tasks are defined. For a complete task that automatically expands some abbreviations in it: class Article(models.Model): title = models.CharField() body = models.TextField() @task def expand_abbreviations(article): article.body blog posts. We’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 码力 | 543 页 | 957.42 KB | 1 年前3
Celery 2.4 Documentationand Strategies – Granularity – Data locality – State – Database transactions • Example – blog/models.py – blog/views.py – blog/tasks.py This guide gives an overview of how tasks are defined. For a task that automatically expands some abbreviations in it: class Article(models.Model): title = models.CharField() body = models.TextField() @task def expand_abbreviations(article): article.body.replace("MyCorp" parts of the models/views and tasks for this application. 2.2. Tasks 37 Celery Documentation, Release 2.4.7 blog/models.py The comment model looks like this: from django.db import models from django0 码力 | 395 页 | 1.54 MB | 1 年前3
共 51 条
- 1
- 2
- 3
- 4
- 5
- 6













