We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f716b9 commit a304687Copy full SHA for a304687
README.md
@@ -199,13 +199,13 @@ another file (called urls_prometheus_wrapper.py in this example) that
199
will wraps the apps URLs and add one on top:
200
201
```python
202
-from django.conf.urls import include, url
+from django.urls import include, path
203
204
205
urlpatterns = []
206
207
-urlpatterns.append(url('prometheus/', include('django_prometheus.urls')))
208
-urlpatterns.append(url('', include('myapp.urls')))
+urlpatterns.append(path('prometheus/', include('django_prometheus.urls')))
+urlpatterns.append(path('', include('myapp.urls')))
209
```
210
211
This file will add a "/prometheus/metrics" end point to the URLs of django
0 commit comments