Skip to content

Commit

Permalink
Adjust websockets routing as prefix is not needed anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-aranda committed Aug 19, 2024
1 parent ec4273c commit 9e1fdf6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions manager/subscription/routing.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,13 @@

"""Define the rules for routing
of channels messages (websockets) in the subscription application."""
from django.conf import settings
from django.urls import re_path

from .consumers import SubscriptionConsumer

URL_PREFIX = settings.FORCE_SCRIPT_NAME[1:] + "/" if settings.FORCE_SCRIPT_NAME else ""

websocket_urlpatterns = [
re_path(
rf"^{URL_PREFIX}manager(.*?)/ws/subscription/?$",
r"^manager(.*?)/ws/subscription/?$",
SubscriptionConsumer.as_asgi(),
),
]
Expand Down

0 comments on commit 9e1fdf6

Please sign in to comment.