Skip to content

Commit

Permalink
Merge pull request #262 from inakimalerba/remove-url-deprecation
Browse files Browse the repository at this point in the history
Replace deprecated django.conf.urls.url()
  • Loading branch information
asherf committed Dec 30, 2020
2 parents de71d57 + c1c7283 commit f9e9afc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions django_prometheus/urls.py
@@ -1,6 +1,6 @@
from django.conf.urls import url
from django.urls import path
from django_prometheus import exports

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

0 comments on commit f9e9afc

Please sign in to comment.