-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Proxito: normalize code languages and redirect to them (#10750)
Languages code are being normalized from the root, the old version of the lang codes are used when building with Sphinx. Projects affected by this change: ``` In [1]: old_language_codes = [ ...: 'nb_NO', ...: 'pt_BR', ...: 'es_MX', ...: 'uk_UA', ...: 'zh_CN', ...: 'zh_TW', ...: ] In [2]: Project.objects.filter(language__in=old_language_codes).count() Out[2]: 3544 ``` We may probably want to publish a small blog post communicating this change. We will be using the new code everywhere, even in the API responses. Old paths using the old code will redirect to the new language code. ### How to deploy this change - Deploy as usual - After the webs are out, run the migrations - This change has zero downtime for doc serving, only downtime will be for downloads (till the migration is run). Closes #2763 --------- Co-authored-by: Manuel Kaufmann <[email protected]>
- Loading branch information
Showing
10 changed files
with
607 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.