浏览代码

Forgot imports in example (thanks lucy)

Ask Solem 16 年之前
父节点
当前提交
7c684a78c3
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      README

+ 1 - 0
README

@@ -204,6 +204,7 @@ advanced features of celery later.
 This is a task that basically does nothing but take some arguments,
 and return a value:
 
+    >>> from celery.task import Task, tasks
     >>> class MyTask(Task):
     ...     name = "myapp.mytask"
     ...     def run(self, some_arg, **kwargs):