From e93ac6aa6cd5242efd61c5519f59d30a657fc03c Mon Sep 17 00:00:00 2001 From: Raffaele Salmaso Date: Thu, 22 Feb 2018 09:09:52 +0100 Subject: [PATCH] Update urls doc configuration --- docs/installation.rst | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/docs/installation.rst b/docs/installation.rst index 9960ab40..c06058fd 100644 --- a/docs/installation.rst +++ b/docs/installation.rst @@ -127,7 +127,7 @@ If you're working with fresh Django installation, you need to set the SITE_ID .. code-block:: python SITE_ID = 1 - + User account handling ~~~~~~~~~~~~~~~~~~~~~ @@ -161,9 +161,8 @@ following lines at the end of your project's ``urls.py``. .. code-block:: python from wiki.urls import get_pattern as get_wiki_pattern - from django_nyt.urls import get_pattern as get_nyt_pattern urlpatterns += [ - url(r'^notifications/', get_nyt_pattern()), + url(r'^notifications/', include('django_nyt.urls')), url(r'', get_wiki_pattern()) ] @@ -173,12 +172,12 @@ end of your urlconf. You can also put it in */wiki* by putting ``'^wiki/'`` as the pattern. .. note:: - + If you are running ``manage.py runserver``, you need to have static files and media files from ``STATIC_ROOT`` and ``MEDIA_ROOT`` served by the development server. ``STATIC_ROOT`` is automatically served, but you have to add ``MEDIA_ROOT`` manually:: - + urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) Please refer to -- 2.45.2