mirror of
https://github.com/jazzband/django-admin2.git
synced 2026-03-16 22:20:24 +00:00
Remove deprecated django.conf.urls. patterns from docs
This commit is contained in:
parent
ddd126abfc
commit
9f95eb13ef
1 changed files with 3 additions and 3 deletions
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue