From 9f95eb13effcd359c37178ac93165b75a545225e Mon Sep 17 00:00:00 2001 From: arthur Date: Tue, 7 Jun 2016 13:45:16 +0200 Subject: [PATCH] Remove deprecated django.conf.urls. patterns from docs --- docs/ref/views.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/ref/views.rst b/docs/ref/views.rst index 74fd54b..463a129 100644 --- a/docs/ref/views.rst +++ b/docs/ref/views.rst @@ -18,7 +18,7 @@ In your Django project's root URLconf module (``urls.py``) modify the code to in .. code-block:: python - from django.conf.urls import patterns, include, url + from django.conf.urls import include, url from djadmin2.site import djadmin2_site from djadmin2.views import IndexView @@ -37,10 +37,10 @@ In your Django project's root URLconf module (``urls.py``) modify the code to in djadmin2_site.autodiscover() - urlpatterns = patterns('', + urlpatterns = [ url(r'^admin2/', include(djadmin2_site.urls)), # ... Place the rest of the project URLs here - ) + ] In real projects the new IndexView would likely be placed into a ``views.py`` module.