diff --git a/README.rst b/README.rst index 810ef4e..ad2f781 100644 --- a/README.rst +++ b/README.rst @@ -30,28 +30,29 @@ Configuration ============= To use django-nested-admin in your project, ``"nested_admin"`` must be added -to the ``INSTALLED_APPS`` in your settings and you must include -``nested_admin.urls`` in your django urlpatterns. `django-grappelli -`_ is an optional dependency -of django-nested-admin. If using Grappelli, make sure the `appropriate version -`_ of Grappelli -is installed for your version of Django. +to the ``INSTALLED_APPS`` in your settings: .. code-block:: python - # settings.py - INSTALLED_APPS = ( # ... 'nested_admin', ) - # urls.py +If you’re using `django-grappelli `_, +you will also need to add to include ``nested_admin.urls`` in your urlpatterns: - urlpatterns = patterns('', + # Django 2+ + urlpatterns = [ # ... - url(r'^nested_admin/', include('nested_admin.urls')), - ) + path('_nested_admin/', include('nested_admin.urls)), + ] + + # Django < 2 + urlpatterns = [ + # ... + url(r'^_nested_admin/', include('nested_admin.urls')), + ] Example Usage ============= diff --git a/docs/quickstart.rst b/docs/quickstart.rst index 87d4ae5..e085ffa 100644 --- a/docs/quickstart.rst +++ b/docs/quickstart.rst @@ -43,12 +43,6 @@ If you're using django-grappelli, you’ll need to add URL-patterns: path('_nested_admin/', include('nested_admin.urls)), ] -Collect the static files: - -.. code-block:: bash - - $ python manage.py collectstatic - Example Usage =============