Skip to main content

Edit a configuration value in place

Edit a configuration value in place (dark theme)
Edit a configuration value in place (light theme)

Drag the divider or use the arrow keys to compare themes.

Edit a configuration value in place
Edit a configuration value in place (dark theme)
Edit a configuration value in place (light theme)

Drag the divider or use the arrow keys to compare themes.

  1. The dialog displays the description, key and type.
  2. The form provides an editor for the setting type and its current revision.
  3. Save submits the change and returns to the catalog after success.
Edit a configuration value in place

Django Chassis 1.0.23 · training site with Russian UI

  1. The dialog displays the description, key and type.
  2. The form provides an editor for the setting type and its current revision.
  3. Save submits the change and returns to the catalog after success.

How to add it​

Use the GlobalConfigAdmin registration in src/apps/admins/apps.py from the previous section. For an editable definition like project.organization, grant django_gc.change_globalconfig in addition to django_gc.view_globalconfig. In the catalog, click Edit on that row, enter Catalog Training Lab and save. Chassis chooses the input based on SettingType, checks the revision and reopens the catalog after a successful save.

Verify the same typed value that project code can read in uv run python src/manage.py shell.

from django_gc import get_value

assert get_value(key='project.organization') == 'Catalog Training Lab'