Skip to Content

Release v2.4.117

Fixed

The admin_urlpatterns() helper now redirects GET and HEAD requests at the exact configured admin root without its trailing slash. For example, /admin redirects to /admin/, preserving the query string. Custom admin prefixes work the same way.

The redirect is temporary and non-cacheable. Disabled or network-restricted admin routes remain hidden. POST and other unsafe methods are not redirected, and the REST API’s append_slash=False policy is unchanged. Projects that mount the Django admin manually can adopt the helper.

See URL management and the previous release.

Last updated on