~netlandish/django-wiki

ea6136c33853d060ce1649a95cc5feac9ace0ce9 — Benjamin Bach 6 years ago 0dd7869
Ensure that instructions for urls and settings are correctly understood
1 files changed, 10 insertions(+), 5 deletions(-)

M docs/installation.rst
M docs/installation.rst => docs/installation.rst +10 -5
@@ 100,6 100,7 @@ to see the current default setting for this variable.
    TEMPLATES = [
        {
            'BACKEND': 'django.template.backends.django.DjangoTemplates',
            'APP_DIRS': True,
            # ...
            'OPTIONS': {
                'context_processors': [


@@ 154,14 155,18 @@ point to the root article:
Include urlpatterns
~~~~~~~~~~~~~~~~~~~

To integrate the wiki to your existing application, you should add the
following lines at the end of your project's ``urls.py``.
To integrate the wiki in your existing application, you should ensure the
following lines are included in your project's ``urls.py``.

.. code-block:: python

    urlpatterns += [
        url(r'^notifications/', include('django_nyt.urls')),
        url(r'', include('wiki.urls'))
    from django.contrib import admin
    from django.urls import path, include

    urlpatterns = [
        path('admin/', admin.site.urls),
        path('notifications/', include('django_nyt.urls')),
        path('', include('wiki.urls'))
    ]