#35169: updated asgi handler for disconnects does not process ROOT_PATH
-------------------------------------+-------------------------------------
     Reporter:  Michael Smith        |                    Owner:  nobody
         Type:  Bug                  |                   Status:  closed
    Component:  Core (Other)         |                  Version:  5.0
     Severity:  Normal               |               Resolution:  needsinfo
     Keywords:  asgi, handler,       |             Triage Stage:
  root_path                          |  Unreviewed
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Comment (by ajslater):

 I've run into the same problem, except with hypercorn.
 script prefixes are no longer prefixed from hypercorn root_path with
 Django 5.0.0+ They are prefixed with Django 4.2.11 and the same hypercorn
 version.

 My workaround right now is to manually call `set_script_prefix()` in my
 `urls.py`:
 {{{
 from django.urls import set_script_prefix
 from myapp.settings import MANUALLY_PARSED_HYPERCORN_SETTINGS

 set_script_prefix(MANUALLY_PARSED_HYPERCORN_SETTINGS.root_path)

 urlpatterns = [ ... ]
 }}}
-- 
Ticket URL: <https://code.djangoproject.com/ticket/35169#comment:11>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018e59b44fe5-d07b2ead-5808-4cfe-b0eb-f22a4ceed17b-000000%40eu-central-1.amazonses.com.

Reply via email to