Skip to content

Commit e7dd846

Browse files
authored
docs: fix entrypoint syntax in overrides tutorial (#782)
In an entrypoint, the module path and the object name need to be separated by a single colon, not a double colon.
1 parent 2082432 commit e7dd846

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/xblock-tutorial/edx_platform/overrides.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ Imagine there is an XBlock installed ``edx-platform``:
3030
3131
# edx-platform/xblocks/video_block.py
3232
class VideoBlock(XBlock):
33-
...
33+
...
3434
3535
# edx-platform/setup.py
3636
setup(
3737
# ...
3838
3939
entry_points={
4040
"xblock.v1": [
41-
"video = xblocks.video_block::VideoBlock"
41+
"video = xblocks.video_block:VideoBlock"
4242
# ...
4343
]
4444
}
@@ -50,14 +50,14 @@ If you then create your own Python package with a custom version of that XBlock.
5050
5151
# your_plugin/xblocks/video_block.py
5252
class YourVideoBlock(XBlock):
53-
...
53+
...
5454
5555
# your_plugin/setup.py
5656
setup(
5757
# ...
5858
entry_points={
5959
"xblock.v1.overrides": [
60-
"video = your_plugin.xblocks.video_block::YourVideoBlock"
60+
"video = your_plugin.xblocks.video_block:YourVideoBlock"
6161
# ...
6262
],
6363
}

0 commit comments

Comments
 (0)