Closed Elendiar closed 2 years ago
Daphne exposes a --root_path
option, which sets the same in the ASGI scope, which is equivalent to SCRIPT_NAME
under WSGI.
https://asgi.readthedocs.io/en/latest/specs/www.html?highlight=root_path#http-connection-scope
This should be what you're looking for.
Hello. Have some issue in production. In dev i successfully connecting to
ws://localhost:8000/ws/informing/1243/
. In production i cant connect tows://localhost/project_name/ws/informing/1243/
with errorValueError: No route found for path 'project_name/ws/informing/1243/'.
I can make it work with changing regexto
r"project_name/ws/informing/(?P<ou>\d+)/$"
orr".*ws/informing/(?P<ou>\d+)/$"
. But isnt there more convinient way with setting up?Nginx: