Merge pull request #439 from arthur-wsw/url_patterns

Remove deprecated django.conf.urls. patterns from docs
This commit is contained in:
Andrews Medina 2016-06-08 00:04:25 -03:00
commit 59d95693b7

View file

@ -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.