healthchecks_healthchecks/hc/api/management
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
..
commands Simplify hosting under subpath 2024-12-19 09:04:45 +02:00
__init__.py sendalerts concurrently 2015-10-30 23:44:08 -07:00