zulip/zproject
Alex Vandiver 7613928e8a apps: Fix redirect from /apps -> https://zulip.com/apps/.
When this code was moved from being in zerver in 21a2fd482e, it kept
the `if ZILENCER_ENABLED` blocks.  Since ZILENCER and CORPORATE are
generally either both on or both off, the if statement became
mostly-unnecessary.

However, because tests cannot easily remove elements from
INSTALLED_APPS and re-determine URL resolution, we switch to checking
`if CORPORATE_ENABLED` as a guard, and leave these in-place.

The other side effect of this is that with e54ded49c4, most Zulip
deployments started to 404 requests for `/apps` instead of redirecting
them to `https://zulip.com/apps/` since they no longer had any path
configured for `/apps`.  Unfortunately, this URL is in widespread use
in the app (e.g. in links from the Welcome Bot), so we should ensure
that it does successfully redirect.

Add the `/apps` path to `zerver`, but only if not CORPORATE_ENABLED,
so the URLs do not overlap.
2022-12-30 17:47:16 -08:00
..
jinja2 requirements: Upgrade Python requirements. 2022-07-05 17:54:17 -07:00
__init__.py
backends.py ruff: Fix N818 exception name should be named with an Error suffix. 2022-11-17 16:52:00 -08:00
computed_settings.py middleware: Set the correct options on the django_language cookie. 2022-11-09 14:24:22 -08:00
config.py config: Remove Django base class from ZulipSettingsError. 2022-09-26 12:42:36 -07:00
configured_settings.py ruff: Fix M001 Unused `noqa` directive. 2022-11-03 12:10:15 -07:00
default_settings.py rate_limit: Add comments documenting how each rate limit rule works. 2022-12-15 12:56:51 -08:00
dev_settings.py settings_type: Extract new module for types used in settings. 2022-09-26 12:42:36 -07:00
dev_urls.py typing: Fix function signatures with django-stubs. 2021-08-20 06:02:55 -07:00
email_backends.py email_backends: Fix type annotation of EmailLogBackEnd. 2022-07-29 14:58:11 -07:00
legacy_urls.py legacy_urls: Add type annotation to legacy_urls. 2022-08-12 17:08:04 -07:00
prod_settings.pyi lint: Replace pycodestyle and pyflakes with ruff. 2022-11-03 12:10:15 -07:00
prod_settings_template.py rate_limit: Add interface to override rate limiting rules. 2022-11-08 08:56:42 -08:00
sentry.py requirements: Upgrade Python requirements. 2022-06-01 16:01:54 -07:00
settings.py ruff: Fix M001 Unused `noqa` directive. 2022-11-03 12:10:15 -07:00
settings_types.py settings_type: Extract new module for types used in settings. 2022-09-26 12:42:36 -07:00
template_loaders.py template_loaders: Extract TwoFactorLoader to new module. 2022-09-26 12:42:36 -07:00
test_extra_settings.py settings_type: Extract new module for types used in settings. 2022-09-26 12:42:36 -07:00
test_settings.py ruff: Fix M001 Unused `noqa` directive. 2022-11-03 12:10:15 -07:00
urls.py apps: Fix redirect from /apps -> https://zulip.com/apps/. 2022-12-30 17:47:16 -08:00
wsgi.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00