There are two important situations where a SiteSettings object might not have been created:
Setting up a site from scratch
Running tests
In both those situations, migration 0032_sitesettings in candidates is run before a site or a user exists, so the SiteSettings can't be created. This means that we need to take steps to make sure that the site still works when no SiteSettings object has been created.
There are two important situations where a SiteSettings object might not have been created:
In both those situations, migration
0032_sitesettings
incandidates
is run before a site or a user exists, so theSiteSettings
can't be created. This means that we need to take steps to make sure that the site still works when no SiteSettings object has been created.