django.contrib.sites.Site configuration
- class django_setup_configuration.contrib.sites.steps.SitesConfigurationStep
This step configures one or more
django.contrib.sites.Siteobjects
To make use of this, add the step to your SETUP_CONFIGURATION_STEPS:
SETUP_CONFIGURATION_STEPS = [ ... "django_setup_configuration.contrib.sites.steps.SitesConfigurationStep", ... ]
Create or update your YAML configuration file with your settings:
sites_config_enable: true
sites_config:
# REQUIRED: true
items:
-
# REQUIRED: true
domain: example_string
# REQUIRED: true
name: example_string
Note
The first item in the list will be used to update the current Site instance,
the rest will be added or updated (if a Site already exists for
that domain).