Skip to content

Commit a304687

Browse files
authored
Fix import in readme (#308)
1 parent 3f716b9 commit a304687

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,13 +199,13 @@ another file (called urls_prometheus_wrapper.py in this example) that
199199
will wraps the apps URLs and add one on top:
200200

201201
```python
202-
from django.conf.urls import include, url
202+
from django.urls import include, path
203203

204204

205205
urlpatterns = []
206206

207-
urlpatterns.append(url('prometheus/', include('django_prometheus.urls')))
208-
urlpatterns.append(url('', include('myapp.urls')))
207+
urlpatterns.append(path('prometheus/', include('django_prometheus.urls')))
208+
urlpatterns.append(path('', include('myapp.urls')))
209209
```
210210

211211
This file will add a "/prometheus/metrics" end point to the URLs of django

0 commit comments

Comments
 (0)