소스 검색

first steps with celery: Make sure cwd is in sys.path

Ask Solem 15 년 전
부모
커밋
91b614d332
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      docs/getting-started/first-steps-with-celery.rst

+ 4 - 0
docs/getting-started/first-steps-with-celery.rst

@@ -70,6 +70,10 @@ Let's create our ``celeryconfig.py``.
 
    We only have a single task module, ``tasks.py``, which we added earlier::
 
+        import os
+        import sys
+        sys.path.insert(0, os.getcwd())
+
         CELERY_IMPORTS = ("tasks", )
 
 That's it.