Skip to content

Commit 228d665

Browse files
committed
swap to formatted urlpattern direct include
1 parent b6b089f commit 228d665

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,15 @@ urlpatterns = [
114114
...
115115
]
116116

117-
if "debug_web" in settings.LIGHTWEIGHT_QUEUE_BACKEND:
118-
from django_lightweight_queue import urls as dlq_urls
119-
urlpatterns += [path("", include(dlq_urls))]
117+
if settings.DEBUG:
118+
urlpatterns += [
119+
path(
120+
"",
121+
include(
122+
"django_lightweight_queue.urls", namespace="django-lightweight-queue"
123+
),
124+
)
125+
]
120126
```
121127

122128
This backend may require an extra setting if your debug site is not on localhost:

0 commit comments

Comments
 (0)