Skip to content

Commit

Permalink
Update Django 4 documentation (#119)
Browse files Browse the repository at this point in the history
Thank you @sergioisidoro!
  • Loading branch information
sergioisidoro authored Jan 6, 2022
1 parent 4812d76 commit 2d94f4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ To overcome this, provide a name to the sitemap instance in ``urls.py``::

urlpatterns = [
...
url(r'^sitemap.xml$', cache_page(60)(sitemap_view), {'sitemaps': [...]}, name='cached-sitemap'),
re_path(r'^sitemap.xml$', cache_page(60)(sitemap_view), {'sitemaps': [...]}, name='cached-sitemap'),
...
]

Expand All @@ -81,7 +81,7 @@ Initialization
To activate robots.txt generation on your Django site, add this line to your
URLconf_::

url(r'^robots\.txt', include('robots.urls')),
re_path(r'^robots\.txt', include('robots.urls')),

This tells Django to build a robots.txt when a robot accesses ``/robots.txt``.
Then, please sync your database to create the necessary tables and create
Expand Down

0 comments on commit 2d94f4c

Please sign in to comment.