소스 검색

Fix command for upgrading settings with Django (#3563)

The command was not working with the `--django` flag before the path of `settings.py` :
    usage: celery <command> settings [filename] [options]
    celery: error: unrecognized arguments: proj/settings.py
François Voron 8 년 전
부모
커밋
59cb87f3e2
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      docs/whatsnew-4.0.rst

+ 1 - 1
docs/whatsnew-4.0.rst

@@ -401,7 +401,7 @@ and save a backup in :file:`proj/settings.py.orig`.
 
     .. code-block:: console
 
-        $ celery upgrade settings --django proj/settings.py
+        $ celery upgrade settings proj/settings.py --django
 
     After upgrading the settings file, you need to set the prefix explicitly
     in your ``proj/celery.py`` module: