Skip to content

Commit

Permalink
README.rst: django-upgrade --target-version=5.0 urls.py
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss authored Sep 27, 2023
1 parent 543f300 commit b115e9f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ Option 2 Configuration
.. code-block:: python
# terms of service links
urlpatterns += patterns('',
url(r'^terms-of-service/', include('tos.urls')),
)
urlpatterns += [
path('terms-of-service/', include('tos.urls')),
]
2. Optional: Since the cache used by TOS will be overwhelmingly read-heavy, you can use a separate cache specifically for TOS. To do so, create a new cache in your project's ``settings.py``:

Expand Down

0 comments on commit b115e9f

Please sign in to comment.