Browse Source

Docs: Extending: Use colon in symbol path. Closes #3258

Ask Solem 8 years ago
parent
commit
682c1a2c5c
1 changed files with 10 additions and 4 deletions
  1. 10 4
      docs/userguide/extending.rst

+ 10 - 4
docs/userguide/extending.rst

@@ -823,7 +823,7 @@ by adding an entry-point in :file:`setup.py`:
         name='flower',
         entry_points={
             'celery.commands': [
-               'flower = flower.command.FlowerCommand',
+               'flower = flower.command:FlowerCommand',
             ],
         }
     )
@@ -832,9 +832,15 @@ by adding an entry-point in :file:`setup.py`:
 .. _Flower: http://pypi.python.org/pypi/flower
 
 The command definition is in two parts separated by the equal sign, where the
-first part is the name of the sub-command (flower), then the fully qualified
-module path to the class that implements the command
-(``flower.command.FlowerCommand``).
+first part is the name of the sub-command (flower), then the second part is
+the fully qualified symbol path to the class that implements the command:
+
+.. code-block:: text
+
+    flower.command:FlowerCommand
+
+The module path and the name of the attribute should be separated by colon
+as above.
 
 
 In the module :file:`flower/command.py`, the command class is defined