[Django] #34394: django.core.handlers.asgi.ASGIRequest.script_name not work with settings.FORCE_SCRIPT_NAME

3 views
Skip to first unread message

Django

unread,
Mar 8, 2023, 10:31:22 PM3/8/23
to django-...@googlegroups.com
#34394: django.core.handlers.asgi.ASGIRequest.script_name not work with
settings.FORCE_SCRIPT_NAME
---------------------------------------+----------------------------------
Reporter: julyzergcn | Owner: nobody
Type: Bug | Status: new
Component: Core (URLs) | Version: 4.1
Severity: Normal | Keywords: asgi SCRIPT_NAME
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
---------------------------------------+----------------------------------
For example, I have settings.FORCE_SCRIPT_NAME = '/some-prefix'
I start a django server with command: daphne
django_project.asgi:application
And I navigate to the http://localhost:8000/admin/login, and see the login
form action url is "/admin/login" which is wrong, which should be "/some-
prefix/admin/login"

--
Ticket URL: <https://code.djangoproject.com/ticket/34394>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Reply all
Reply to author
Forward
0 new messages