Skip to content

Commit

Permalink
Merge pull request #78 from cclauss/patch-2
Browse files Browse the repository at this point in the history
README.rst: django-upgrade --target-version=5.0 urls.py
  • Loading branch information
nicholasserra authored Sep 27, 2023
2 parents 16c1257 + b115e9f commit 6f2c350
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 6f2c350

Please sign in to comment.