From a304687214825f766077e4de0b5d0be7555feb81 Mon Sep 17 00:00:00 2001 From: Asher Foa Date: Tue, 14 Dec 2021 16:45:39 -0800 Subject: [PATCH] Fix import in readme (#308) --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b5448b11..d7232dfe 100644 --- a/README.md +++ b/README.md @@ -199,13 +199,13 @@ another file (called urls_prometheus_wrapper.py in this example) that will wraps the apps URLs and add one on top: ```python -from django.conf.urls import include, url +from django.urls import include, path urlpatterns = [] -urlpatterns.append(url('prometheus/', include('django_prometheus.urls'))) -urlpatterns.append(url('', include('myapp.urls'))) +urlpatterns.append(path('prometheus/', include('django_prometheus.urls'))) +urlpatterns.append(path('', include('myapp.urls'))) ``` This file will add a "/prometheus/metrics" end point to the URLs of django