Skip to content

Commit

Permalink
[#467] Prefix sites configuration namespace with project name
Browse files Browse the repository at this point in the history
  • Loading branch information
SonnyBA committed Dec 11, 2024
1 parent 045088e commit 433867d
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions docs/installation/config_cli.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ Create or update a (single) YAML configuration file with your settings:

.. code-block:: yaml
...
sites_config_enable: true
sites_config:
objects_api_sites_config_enable: true
objects_api_sites_config:
items:
- domain: example.com
name: Example site
Expand Down
4 changes: 2 additions & 2 deletions src/objects/setup_configuration/steps/sites.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ class SitesConfigurationStep(BaseConfigurationStep):
config_model = SitesConfigurationModel
verbose_name = "Sites configuration"

namespace = "sites_config"
enable_setting = "sites_config_enable"
namespace = "objects_api_sites_config"
enable_setting = "objects_api_config_enable"

def execute(self, model: SitesConfigurationModel) -> None:
for item in model.items:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
sites_config_enable: true
sites_config:
objects_api_sites_config_enable: true
objects_api_sites_config:
items:
- domain: example.com
name: Example site
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
sites_config_enable: true
sites_config:
objects_api_sites_config_enable: true
objects_api_sites_config:
items:
- domain: example.com
name: Example site (revised)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
sites_config_enable: true
sites_config:
objects_api_sites_config_enable: true
objects_api_sites_config:
items:
- domain: example.com
name: Example site
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
sites_config_enable: true
sites_config:
objects_api_sites_config_enable: true
objects_api_sites_config:
items:
- domain: example.com
name: Example site
Expand Down

0 comments on commit 433867d

Please sign in to comment.