healthchecks/hc/accounts
Pēteris Caune 45b8bd64df
Simplify hosting under subpath
Instead of using SCRIPT_NAME / FORCE_SCRIPT_NAME, PATH_INFO
and their associated issues, update urls.py to add the subpath
to all routes. This allows us to get rid of several hacks:

* the uwsgi.ini magic which parses SITE_ROOT, sets SCRIPT_NAME
  and fixes PATH_INFO
* set_script_prefix() in sendalerts
* chopping the subpath off an URL in hc.accounts.views._allow_redirect

The idea comes from @apollo13
in https://code.djangoproject.com/ticket/35985#comment:5

cc: #1091
2024-12-19 09:04:45 +02:00
..
management Fix senddeletionscheduled to set the "created" field on flip objects 2024-04-22 09:21:46 +03:00
migrations Fix auto-fixable ruff warnings 2024-11-07 15:15:58 +02:00
tests Update CustomHeaderMiddleware to normalize email addresses to lower case 2024-10-24 13:22:37 +03:00
__init__.py Initial commit 2015-06-11 22:12:09 +03:00
admin.py Fix Project.num_checks naming collision 2024-09-24 10:18:22 +03:00
backends.py Fix "class Foo(object):" -> "class Foo:" 2024-10-29 17:57:50 +02:00
decorators.py Move reusable type aliases to hc.lib.typealias 2023-09-06 10:52:47 +03:00
forms.py Fix mypy warning 2023-10-22 16:57:02 +03:00
http.py Move AuthenticatedHttpRequest to hc.accounts.http module 2023-10-21 18:16:48 +03:00
middleware.py Fix "class Foo(object):" -> "class Foo:" 2024-10-29 17:57:50 +02:00
models.py Move absolute URL construction to hc.lib.urls.absolute_reverse() 2024-12-03 17:24:27 +02:00
urls.py Fix hc.accounts.views.check_token to handle non-UUID usernames 2023-08-22 13:45:54 +03:00
views.py Simplify hosting under subpath 2024-12-19 09:04:45 +02:00