<commit_before>.. _setup:

=====
Setup
=====

``wagtailnews`` is compatible with Wagtail 0.7 and higher,
and Python 2.7 and Python 3.4 and higher.

Step 1
______

Install ``wagtailnews`` using pip::

   pip install wagtailnews

Step 2
______

Add ``wagtailnews`` to installed apps in settings:

.. code-block:: python

  INSTALLED_APPS = [
      'yourproject',
      'wagtailnews',
  ]<commit_msg>w.c.wagtailroutablepage must be installed for wagtailnews<commit_after>.. _setup:

=====
Setup
=====

``wagtailnews`` is compatible with Wagtail 0.7 and higher,
and Python 2.7 and Python 3.4 and higher.

Step 1
______

Install ``wagtailnews`` using pip::

   pip install wagtailnews

Step 2
______

Add ``wagtailnews`` and ``wagtail.contrib.wagtailroutablepage`` to your ``INSTALLED_APPS`` in settings:

.. code-block:: python

  INSTALLED_APPS += [
      'wagtailnews',
      'wagtail.contrib.wagtailroutablepage',
  ]
{'fraction_non_alphanumeric': 0.12554585152838427, 'fraction_numerical': 0.017467248908296942, 'mean_word_length': 3.9301075268817205, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7007109', 'n_tokens_mistral': 347, 'n_tokens_neox': 319, 'n_words': 91}