From 6161e96c8d245d0593b7eaec1360632a296a0bfc Mon Sep 17 00:00:00 2001 From: Steven Mapes Date: Fri, 18 Oct 2024 14:39:10 +0100 Subject: [PATCH] Update README.rst Added in code block syntax highlight --- README.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index 366b895..68a70a8 100644 --- a/README.rst +++ b/README.rst @@ -31,7 +31,9 @@ Usage ``include`` however the first argument should be either a decorator or an iterable of decorators to apply to all included views (if an iterable, the order of the decorators is the order in which the functions will be applied on the views). -Here is an example URL conf:: +Here is an example URL conf + +.. code-block:: python from django.contrib import admin from django.core.exceptions import PermissionDenied @@ -58,7 +60,6 @@ Here is an example URL conf:: path('admin/', decorator_include([login_required, only_user('god')], admin.site.urls), ] - Supported versions ------------------