Fixed #35335 -- Updated "Enabling the sites framework" docs to reiterate usage of get_current_site. #17977
+52
−6
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi,
When learning the sites framework, a few questions came to mind and needed to be researched. The idea with this pull request is to address those topics. Feedback is welcome.
When considering adding "sites" to our Django site in order to enable a feature of Allauth, it was not clear if the typical implementation of "sites" could be done with one application server (ideally) or must be scaled across multiple servers, each with their own SITE_ID (which would be problematic). It seems the original design would require that. Thus, the sentences about "multiple app servers" to explain the point. I think it's interesting information.
added the word "optional" to the directive that you must add a SITE_ID in the settings.
added a mention about what is "recommended". If you believe that is going too far, and it's not recommended, it could be edited.