Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SitesConfigurationStep does not handle case of zero defined Sites #42

Closed
swrichards opened this issue Dec 19, 2024 · 0 comments · Fixed by #43
Closed

SitesConfigurationStep does not handle case of zero defined Sites #42

swrichards opened this issue Dec 19, 2024 · 0 comments · Fixed by #43

Comments

@swrichards
Copy link
Contributor

The current step always runs Site.objects.get_current() but does not catch Site.DoesNotExist (if no sites) or ImproperlyConfigured (if no SITE_ID in settings, and not in a request context so the host can be used). This means that if the step is run on a database with no Sites, it will fail.

Reported by @SilviaAmAm and @sjoerdie .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant