@@ 65,9 65,9 @@ maintain the order due to database relational constraints:
.. code-block:: python
- 'django.contrib.sites',
- 'django.contrib.humanize',
- 'django_nyt',
+ 'django.contrib.sites.apps.SitesConfig',
+ 'django.contrib.humanize.apps.HumanizeConfig',
+ 'django_nyt.apps.DjangoNytConfig',
'mptt',
'sekizai',
'sorl.thumbnail',
@@ 87,13 87,13 @@ To sync and create tables, do:
python manage.py migrate
-Configure ``TEMPLATE_CONTEXT_PROCESSORS``
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+Configure ``context_processors``
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-Add ``'sekizai.context_processors.sekizai'`` and
-``'django.core.context_processors.debug'`` to
-``settings.TEMPLATE_CONTEXT_PROCESSORS``. Please refer to the `Django
-settings docs <https://docs.djangoproject.com/en/dev/ref/settings/>`_
+``django-wiki`` uses the `Django Templates` backend.
+Add ``'sekizai.context_processors.sekizai'`` and ``'django.core.context_processors.debug'`` to
+``context_processors`` section of your template backend settings.
+Please refer to the `Django templates docs <https://docs.djangoproject.com/en/1.11/topics/templates/#django.template.backends.django.DjangoTemplates/>`_
to see the current default setting for this variable.
.. code-block:: python
@@ 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