Skip to content

Commit c1c7283

Browse files
committed
Replace deprecated django.conf.urls.url()
Fix RemovedInDjango40Warning deprecation warning https://code.djangoproject.com/ticket/31534
1 parent de71d57 commit c1c7283

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

django_prometheus/urls.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
from django.conf.urls import url
1+
from django.urls import path
22
from django_prometheus import exports
33

44
urlpatterns = [
5-
url(r"^metrics$", exports.ExportToDjangoView, name="prometheus-django-metrics")
5+
path("metrics", exports.ExportToDjangoView, name="prometheus-django-metrics")
66
]

0 commit comments

Comments
 (0)