Skip to content

Commit bf7a87e

Browse files
committed
Deploy CI CD on Test Server
1 parent bb044cb commit bf7a87e

File tree

1 file changed

+6
-2
lines changed
  • Backend/EcommerceInventory/EcommerceInventory

1 file changed

+6
-2
lines changed

Backend/EcommerceInventory/EcommerceInventory/urls.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@
3434
# re_path(r'^(?:.*)/?$', index),
3535

3636
]
37-
3837
if settings.DEBUG:
39-
urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
38+
urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
39+
40+
# Add the catch-all pattern at the end
41+
urlpatterns += [
42+
re_path(r'^(?:.*)/?$', index),
43+
]

0 commit comments

Comments
 (0)