Skip to content

Commit 3915557

Browse files
committed
Move revproxy "" pattern after admin - HEA-904
1 parent 59ad999 commit 3915557

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

hea/urls.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -159,11 +159,6 @@
159159
AssetDownloadView.as_view(),
160160
name="asset_download_partitioned",
161161
),
162-
# Baseline Explorer React GUI using Django rev proxy to serve a cloudfront distro
163-
path("<path:path>", BaselineExplorerProxyView.as_view(), name="baseline_explorer"),
164-
# The URL pattern below does not capture any path parameter from the URL. But django-revproxy views
165-
# require a path argument. We manually pass a default: {"path": ""}.
166-
path("", BaselineExplorerProxyView.as_view(), {"path": ""}, name="baseline_explorer"),
167162
]
168163

169164

@@ -189,3 +184,11 @@
189184
path("admin/doc/", include("django.contrib.admindocs.urls")),
190185
path("admin/", admin.site.urls),
191186
)
187+
188+
urlpatterns += [
189+
# Baseline Explorer React GUI using Django rev proxy to serve a cloudfront distro
190+
path("<path:path>", BaselineExplorerProxyView.as_view(), name="baseline_explorer"),
191+
# The URL pattern below does not capture any path parameter from the URL. But django-revproxy views
192+
# require a path argument. We manually pass a default: {"path": ""}.
193+
path("", BaselineExplorerProxyView.as_view(), {"path": ""}, name="baseline_explorer"),
194+
]

0 commit comments

Comments
 (0)