<commit_before>=========
Upgrading
=========

develop
=======

Django 1.5.* and Django CMS 2.4.* are now the recommended versions. 
Upgrade these packages::

    pip install django>=1.5,<1.6
    pip install django-cms>=2.4,<2.5

In advance of Django removing the ``django.contrib.localflavor``
package from Django core, install the ``django-localflavor`` package::

    pip install django-localflavor

You'll need to run the `upgrade steps for Django CMS 2.4 <http://docs.django-cms.org/en/2.4.0/upgrade/2.4.html>`_.
Please read the upgrading instructions carefully::

    manage.py migrate
    manage.py cms list plugins
    # If any the previous command shows any orphaned plugins run
    # manage.py cms delete_orphaned_plugins
    manage.py cms moderator on

0.16.5 to 0.16.6
================

The builder JavaScript was updated, so you'll have to re-collect the static
assets::

    python manage.py collectstatic

If you're using django-compressor with offline compression, you'll also need
to recompress the JavaScript assets.

    python manage.py compress

Finally, the response of a cached endpoint has changed, so you'll need to clear
the cache, or follow one of the recipes in http://stackoverflow.com/questions/2268417/expire-a-view-cache-in-django
to expire just the cached view.

0.15.* to 0.16
==============<commit_msg>Added note about needing ALLOWED_HOSTS setting<commit_after>=========
Upgrading
=========

develop
=======

Django 1.5.* and Django CMS 2.4.* are now the recommended versions. 
Upgrade these packages::

    pip install django>=1.5,<1.6
    pip install django-cms>=2.4,<2.5

In advance of Django removing the ``django.contrib.localflavor``
package from Django core, install the ``django-localflavor`` package::

    pip install django-localflavor

Take a look at the `release notes for Django 1.5 <https://docs.djangoproject.com/en/dev/releases/1.5/>`_
and make note of any changes required by your particular site. A few things
to look out for:

* You must define ``ALLOWED_HOSTS`` in the settings module

You'll need to run the `upgrade steps for Django CMS 2.4 <http://docs.django-cms.org/en/2.4.0/upgrade/2.4.html>`_.
Please read the upgrading instructions carefully::

    manage.py migrate
    manage.py cms list plugins
    # If any the previous command shows any orphaned plugins run
    # manage.py cms delete_orphaned_plugins
    manage.py cms moderator on



0.16.5 to 0.16.6
================

The builder JavaScript was updated, so you'll have to re-collect the static
assets::

    python manage.py collectstatic

If you're using django-compressor with offline compression, you'll also need
to recompress the JavaScript assets.

    python manage.py compress

Finally, the response of a cached endpoint has changed, so you'll need to clear
the cache, or follow one of the recipes in http://stackoverflow.com/questions/2268417/expire-a-view-cache-in-django
to expire just the cached view.

0.15.* to 0.16
==============
{'fraction_non_alphanumeric': 0.11631827376938637, 'fraction_numerical': 0.028320971004720162, 'mean_word_length': 3.9615384615384617, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, 'https://': 1, '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': '3554736', 'n_tokens_mistral': 942, 'n_tokens_neox': 845, 'n_words': 346}