Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
docs: Update all links to Django docs to point to version /3.2/.
YashRE4240444cf4159c
diff --git a/docs/development/using.md b/docs/development/using.mdindex 24976e90370..178a9b44ceb 100644--- a/docs/development/using.md+++ b/docs/development/using.md@@ -94,7 +94,7 @@ for mobile development][mobile-dev-server].[rest-api]: https://zulip.com/api/rest[authentication-dev-server]: ./authentication.md-[django-runserver]: https://docs.djangoproject.com/en/1.8/ref/django-admin/#runserver-port-or-address-port+[django-runserver]: https://docs.djangoproject.com/en/3.2/ref/django-admin/#runserver[new-feature-tutorial]: ../tutorials/new-feature-tutorial.md[testing-docs]: ../testing/testing.md[mobile-dev-server]: https://github.com/zulip/zulip-mobile/blob/main/docs/howto/dev-server.md#using-a-dev-version-of-the-serverdiff --git a/docs/overview/directory-structure.md b/docs/overview/directory-structure.mdindex 31eaebd4343..c4dd27e5750 100644--- a/docs/overview/directory-structure.md+++ b/docs/overview/directory-structure.md@@ -10,15 +10,15 @@ flow through these files.### Core Python filesZulip uses the [Django web-framework](https://docs.djangoproject.com/en/1.8/), so a lot of these+framework](https://docs.djangoproject.com/en/3.2/), so a lot of thesepaths will be familiar to Django developers.- `zproject/urls.py` Main- [Django routes file](https://docs.djangoproject.com/en/1.8/topics/http/urls/).+ [Django routes file](https://docs.djangoproject.com/en/3.2/topics/http/urls/).Defines which URLs are handled by which view functions or templates.- `zerver/models.py` Main- [Django models](https://docs.djangoproject.com/en/1.8/topics/db/models/)+ [Django models](https://docs.djangoproject.com/en/3.2/topics/db/models/)file. Defines Zulip's database tables.- `zerver/lib/*.py` Most library code.@@ -28,7 +28,7 @@ paths will be familiar to Django developers.all code calling `send_event` to trigger [pushing data toclients](../subsystems/events-system.md) must live here.-- `zerver/views/*.py` Most [Django views](https://docs.djangoproject.com/en/1.8/topics/http/views/).+- `zerver/views/*.py` Most [Django views](https://docs.djangoproject.com/en/3.2/topics/http/views/).- `zerver/webhooks/` Webhook views and tests for [Zulip's incoming webhook integrations](https://zulip.com/api/incoming-webhooks-overview).@@ -38,7 +38,7 @@ paths will be familiar to Django developers.- `zerver/lib/markdown/` [Backend Markdown processor](../subsystems/markdown.md).-- `zproject/backends.py` [Authentication backends](https://docs.djangoproject.com/en/1.8/topics/auth/customizing/).+- `zproject/backends.py` [Authentication backends](https://docs.djangoproject.com/en/3.2/topics/auth/customizing/).---diff --git a/docs/production/email.md b/docs/production/email.mdindex 03cb4dc3102..55116e47994 100644--- a/docs/production/email.md+++ b/docs/production/email.md@@ -205,7 +205,7 @@ aren't receiving emails from Zulip:will try to use the TLS protocol on port 465, which won't work.- Zulip's email sending configuration is based on the standard Django- [SMTP backend](https://docs.djangoproject.com/en/2.0/topics/email/#smtp-backend)+ [SMTP backend](https://docs.djangoproject.com/en/3.2/topics/email/#smtp-backend)configuration. So if you're having trouble getting your emailprovider working, you may want to search for documentation relatedto using your email provider with Django.diff --git a/docs/production/management-commands.md b/docs/production/management-commands.mdindex af1a800badf..9c58c2b3d11 100644--- a/docs/production/management-commands.md+++ b/docs/production/management-commands.md@@ -182,4 +182,4 @@ upgrade.[zulip-api]: https://zulip.com/api/rest[webhook-integrations]: https://zulip.com/api/incoming-webhooks-overview[management-commands-dev]: ../subsystems/management-commands.md-[django-management]: https://docs.djangoproject.com/en/2.2/ref/django-admin/#django-admin-and-manage-py+[django-management]: https://docs.djangoproject.com/en/3.2/ref/django-admin/#django-admin-and-manage-pydiff --git a/docs/subsystems/caching.md b/docs/subsystems/caching.mdindex a3a09d752f2..5aecb703a47 100644--- a/docs/subsystems/caching.md+++ b/docs/subsystems/caching.md@@ -262,4 +262,4 @@ cached by clients is changed. Clients are responsible for handlingthe events, updating their state, and rerendering any UI componentsthat might display the modified state.-[post-save-signals]: https://docs.djangoproject.com/en/2.0/ref/signals/#post-save+[post-save-signals]: https://docs.djangoproject.com/en/3.2/ref/signals/#post-savediff --git a/docs/subsystems/client.md b/docs/subsystems/client.mdindex 92f8e79a392..345989b8614 100644--- a/docs/subsystems/client.md+++ b/docs/subsystems/client.md@@ -29,7 +29,7 @@ The `webhook_view` auth decorator, used for most incomingwebhooks, accepts the name of the integration as an argument and usesit to generate a client name that it adds to the `request_notes`object that can be accessed with the `request` (Django-[HttpRequest](https://docs.djangoproject.com/en/1.8/ref/request-response/#django.http.HttpRequest))+[HttpRequest](https://docs.djangoproject.com/en/3.2/ref/request-response/#django.http.HttpRequest))object via `zerver.lib.request.get_request_notes(request)`.In most integrations, `request_notes.client` is then passed todiff --git a/docs/subsystems/logging.md b/docs/subsystems/logging.mdindex 4018b85df83..6f873d79b86 100644--- a/docs/subsystems/logging.md+++ b/docs/subsystems/logging.md@@ -179,7 +179,7 @@ a new view:- The time when the browser was idle again after switching views(intended to catch issues where we generate a lot of deferred work).-[django-errors]: https://docs.djangoproject.com/en/2.2/howto/error-reporting/+[django-errors]: https://docs.djangoproject.com/en/3.2/howto/error-reporting/[python-logging]: https://docs.python.org/3/library/logging.html-[django-logging]: https://docs.djangoproject.com/en/2.2/topics/logging/+[django-logging]: https://docs.djangoproject.com/en/3.2/topics/logging/[sentry]: https://sentry.iodiff --git a/docs/subsystems/management-commands.md b/docs/subsystems/management-commands.mdindex f6a8371b950..7e42a2f2090 100644--- a/docs/subsystems/management-commands.md+++ b/docs/subsystems/management-commands.md@@ -62,4 +62,4 @@ to do anything special like restart the server when iterativelytesting one, even if testing in a Zulip production environment wherethe server doesn't normally restart whenever a file is edited.-[django-docs]: https://docs.djangoproject.com/en/2.2/howto/custom-management-commands/+[django-docs]: https://docs.djangoproject.com/en/3.2/howto/custom-management-commands/diff --git a/docs/subsystems/schema-migrations.md b/docs/subsystems/schema-migrations.mdindex fc0d1491791..cb8eeb4f9c3 100644--- a/docs/subsystems/schema-migrations.md+++ b/docs/subsystems/schema-migrations.md@@ -1,7 +1,7 @@# Schema migrationsZulip uses the [standard Django system for doing schema-migrations](https://docs.djangoproject.com/en/1.10/topics/migrations/).+migrations](https://docs.djangoproject.com/en/3.2/topics/migrations/).There is some example usage in the [new featuretutorial](../tutorials/new-feature-tutorial.md).@@ -164,7 +164,7 @@ an incorrect migration messes up a database in a way that's impossibleto undo without going to backups.[django-migration-test-blog-post]: https://www.caktusgroup.com/blog/2016/02/02/writing-unit-tests-django-migrations/-[migrations-non-atomic]: https://docs.djangoproject.com/en/1.10/howto/writing-migrations/#non-atomic-migrations+[migrations-non-atomic]: https://docs.djangoproject.com/en/3.2/howto/writing-migrations/#non-atomic-migrations## Schema and initial data changesdiff --git a/docs/subsystems/settings.md b/docs/subsystems/settings.mdindex 068a983f5fa..f174067ae23 100644--- a/docs/subsystems/settings.md+++ b/docs/subsystems/settings.md@@ -26,7 +26,7 @@ convenient for:## Server settingsZulip uses the [Django settings-system](https://docs.djangoproject.com/en/2.2/topics/settings/), which+system](https://docs.djangoproject.com/en/3.2/topics/settings/), whichmeans that the settings files are Python programs that set a lot ofvariables with all-capital names like `EMAIL_GATEWAY_PATTERN`. You canaccess these anywhere in the Zulip Django code using e.g.:@@ -146,7 +146,7 @@ accessed in initialization of Django (or Zulip) internals(e.g. `DATABASES`). See the [Django docs on overriding settings intests][django-test-settings] for more details.-[django-test-settings]: https://docs.djangoproject.com/en/2.2/topics/testing/tools/#overriding-settings+[django-test-settings]: https://docs.djangoproject.com/en/3.2/topics/testing/tools/#overriding-settings## Realm settingsdiff --git a/docs/testing/linters.md b/docs/testing/linters.mdindex 285c975625c..7a09d46caf8 100644--- a/docs/testing/linters.md+++ b/docs/testing/linters.md@@ -212,7 +212,7 @@ option of Puppet.Zulip uses two HTML templating systems:-- [Django templates](https://docs.djangoproject.com/en/1.10/topics/templates/)+- [Django templates](https://docs.djangoproject.com/en/3.2/topics/templates/)- [handlebars](https://handlebarsjs.com/)Zulip has an internal tool that validates both types of templates fordiff --git a/docs/testing/testing-with-django.md b/docs/testing/testing-with-django.mdindex 5348bb95bb3..61c270e5835 100644--- a/docs/testing/testing-with-django.md+++ b/docs/testing/testing-with-django.md@@ -4,7 +4,7 @@Zulip uses the Django framework for its Python backend. Weuse the testing framework from-[django.test](https://docs.djangoproject.com/en/1.10/topics/testing/)+[django.test](https://docs.djangoproject.com/en/3.2/topics/testing/)to test our code. We have over a thousand automated tests that verify thatour backend works as expected.diff --git a/docs/tutorials/life-of-a-request.md b/docs/tutorials/life-of-a-request.mdindex 80262768eed..8b557d79bc4 100644--- a/docs/tutorials/life-of-a-request.md+++ b/docs/tutorials/life-of-a-request.md@@ -55,7 +55,7 @@ application.## Django routes the request to a view in urls.py filesThere are various-[urls.py](https://docs.djangoproject.com/en/1.8/topics/http/urls/)+[urls.py](https://docs.djangoproject.com/en/3.2/topics/http/urls/)files throughout the server codebase, which are covered in more detailin[the directory structure doc](../overview/directory-structure.md).@@ -180,7 +180,7 @@ PUT=create_user_backend```are supplied as arguments to `rest_path`, along with the-[HTTPRequest](https://docs.djangoproject.com/en/1.8/ref/request-response/).+[HTTPRequest](https://docs.djangoproject.com/en/3.2/ref/request-response/).The request has the HTTP verb `PUT`, which `rest_dispatch` can use tofind the correct view to show:`zerver.views.users.create_user_backend`.@@ -199,7 +199,7 @@ Our API works on JSON requests and responses. Every API endpoint should```in a-[HTTP response](https://docs.djangoproject.com/en/1.8/ref/request-response/)+[HTTP response](https://docs.djangoproject.com/en/3.2/ref/request-response/)with a content type of 'application/json'.To pass back data from the server to the calling client, in the event ofdiff --git a/docs/tutorials/new-feature-tutorial.md b/docs/tutorials/new-feature-tutorial.mdindex 2940a907f2b..5b15848384b 100644--- a/docs/tutorials/new-feature-tutorial.md+++ b/docs/tutorials/new-feature-tutorial.md@@ -20,7 +20,7 @@ tests, use Django's tooling.Zulip's [directory structure](../overview/directory-structure.md)will also be helpful to review when creating a new feature. Manyaspects of the structure will be familiar to Django developers. Visit-[Django's documentation](https://docs.djangoproject.com/en/2.2/#index-first-steps)+[Django's documentation](https://docs.djangoproject.com/en/3.2/#index-first-steps)for more information about how Django projects are typicallyorganized. And finally, the[message sending](../subsystems/sending-messages.md) documentation on@@ -240,7 +240,7 @@ Create the migration file using the Django `makemigrations` command:(NNNN is a number that is equal to the number of migrations.)If you run into problems, the-[Django migration documentation](https://docs.djangoproject.com/en/1.8/topics/migrations/)+[Django migration documentation](https://docs.djangoproject.com/en/3.2/topics/migrations/)is helpful.### Test your migration changesdiff --git a/docs/tutorials/writing-views.md b/docs/tutorials/writing-views.mdindex f0d37fc483e..3f76e848e73 100644--- a/docs/tutorials/writing-views.md+++ b/docs/tutorials/writing-views.md@@ -35,7 +35,7 @@ or JSON (data for Zulip clients on all platforms, custom bots, andintegrations).The format of the URL patterns in Django is [documented-here](https://docs.djangoproject.com/en/1.8/topics/http/urls/), and+here](https://docs.djangoproject.com/en/3.2/topics/http/urls/), andthe Zulip specific details for these are discussed in detail in the[life of a request doc](life-of-a-request.html#options).@@ -93,7 +93,7 @@ specific to Zulip.def home(request: HttpRequest) -> HttpResponse:```-[login-required-link]: https://docs.djangoproject.com/en/1.8/topics/auth/default/#django.contrib.auth.decorators.login_required+[login-required-link]: https://docs.djangoproject.com/en/3.2/topics/auth/default/#django.contrib.auth.decorators.login_required### Writing a template