zulip/zproject
Zixuan James Li 75925fe059 middleware: Reorder middleware to clean up LogRequests hasattr checks.
Similar to the previous commit, we should access request.user only
after it has been initialized, rather than having awkward hasattr
checks.

With updates to the settings comments about LogRequests by tabbott.

Signed-off-by: Zixuan James Li <p359101898@gmail.com>
2022-07-14 17:28:50 -07:00
..
jinja2 requirements: Upgrade Python requirements. 2022-07-05 17:54:17 -07:00
__init__.py
backends.py ldap: Remove unused isinstance check. 2022-07-11 11:46:25 -07:00
computed_settings.py middleware: Reorder middleware to clean up LogRequests hasattr checks. 2022-07-14 17:28:50 -07:00
config.py sentry: Set environment from `machine.deploy_type` config. 2021-07-15 15:01:43 -07:00
configured_settings.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
default_settings.py settings: Allow customizing HOME_NOT_LOGGED_IN. 2022-06-01 15:37:31 -07:00
dev_settings.py settings: Allow customizing HOME_NOT_LOGGED_IN. 2022-06-01 15:37:31 -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 concurrent backend testing for generate_emails. 2022-05-03 08:45:51 -07:00
legacy_urls.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00
prod_settings.pyi zproject: Add prod_settings mypy stub, aliasing prod_settings_template. 2021-07-05 09:53:41 -07:00
prod_settings_template.py prod_settings_template: Switch to double quotes in commented lines. 2022-04-28 12:40:28 -07:00
sentry.py requirements: Upgrade Python requirements. 2022-06-01 16:01:54 -07:00
settings.py python: Add noqa comments for the specific star imports we allow. 2020-06-11 15:36:43 -07:00
test_extra_settings.py db: Use cursor_factory psycopg2 option. 2022-07-05 17:54:17 -07:00
test_settings.py test_settings: Use TEST_EXTERNAL_HOST to override ‘testserver’ default. 2020-12-17 13:07:59 -08:00
urls.py emoji: Use path converter for emoji name in URL. 2022-07-14 14:29:40 -07:00
wsgi.py python: Normalize quotes with Black. 2021-02-12 13:11:19 -08:00