You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use lists in Django settings, use new url pattern (#210)
Since Django<1.11 lists are used for INSTALLED_APPS and MIDDLEWARE.
Urls now also use a simplified path pattern, and django.urls.re_path shall be used for regex matches.
@@ -216,4 +215,4 @@ This involves extending the classes defined in middleware.py.
216
215
* Extend the Metrics class and override the `register_metric` method to add the application specific labels.
217
216
* Extend middleware classes, set the metrics_cls class attribute to the the extended metric class and override the label_metric method to attach custom metrics.
218
217
219
-
See implementation example in [the test app](django_prometheus/tests/end2end/testapp/test_middleware_custom_labels.py#L19-L46)
218
+
See implementation example in [the test app](django_prometheus/tests/end2end/testapp/test_middleware_custom_labels.py#L19-L46)
0 commit comments