Skip to content

Commit

Permalink
Fix import in readme (#308)
Browse files Browse the repository at this point in the history
  • Loading branch information
asherf authored Dec 15, 2021
1 parent 3f716b9 commit a304687
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a304687

Please sign in to comment.