mirror of
https://github.com/ChristianLight/tutor.git
synced 2024-12-12 06:07:56 +00:00
docs: fix ENV_PATCHES example
This commit is contained in:
parent
2e276cbb09
commit
f042ca9b90
@ -71,8 +71,10 @@ This imports the ``hooks`` module from Tutor, which grants us access to ``hooks.
|
||||
::
|
||||
|
||||
hooks.Filters.ENV_PATCHES.add_item(
|
||||
<name>,
|
||||
<content>
|
||||
(
|
||||
<name>,
|
||||
<content>
|
||||
)
|
||||
)
|
||||
|
||||
This means "add ``<content>`` to the ``{{ patch("<name>") }}`` statement, thanks to the :py:data:`tutor.hooks.Filters.ENV_PATCHES` filter". In our case, we want to modify the LMS settings, both in production and development. The right patch for that is :patch:`openedx-lms-common-settings`. We add one item, which is a single Python-formatted line of code::
|
||||
|
Loading…
Reference in New Issue
Block a user