Skip to content

Commit

Permalink
Update README.rst
Browse files Browse the repository at this point in the history
Added in code block syntax highlight
  • Loading branch information
StevenMapes authored Oct 18, 2024
1 parent 5e5d2f0 commit 6161e96
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -58,7 +60,6 @@ Here is an example URL conf::
path('admin/', decorator_include([login_required, only_user('god')], admin.site.urls),
]

Supported versions
------------------
Expand Down

0 comments on commit 6161e96

Please sign in to comment.