<commit_before>Installation
============

Django
------

Python package::

    pip install django-allauth

settings.py::

    TEMPLATE_CONTEXT_PROCESSORS = (
        ...
        # Required by `allauth` template tags
        'django.core.context_processors.request',
        ...
        # `allauth` specific context processors
        'allauth.account.context_processors.account',
        'allauth.socialaccount.context_processors.socialaccount',
        ...
    )

    AUTHENTICATION_BACKENDS = (
        ...
        # Needed to login by username in Django admin, regardless of `allauth`
        'django.contrib.auth.backends.ModelBackend',

        # `allauth` specific authentication methods, such as login by e-mail
        'allauth.account.auth_backends.AuthenticationBackend',
        ...
    )

    INSTALLED_APPS = (
        ...
        # The Django sites framework is required
        'django.contrib.sites',<commit_msg>Approach to adding Context Processors changed in Django 1.8+ Docs changed to accommodate that accordingly for those running 1.8+  Changes to be committed: 	modified:   docs/installation.rst<commit_after>Installation
============

Django
------

Python package::

    pip install django-allauth

settings.py::

    TEMPLATE_CONTEXT_PROCESSORS = (
        ...
        # Required by `allauth` template tags
        'django.core.context_processors.request',
        ...
        # `allauth` specific context processors
        'allauth.account.context_processors.account',
        'allauth.socialaccount.context_processors.socialaccount',
        ...
    )

If you are running Django 1.8+, you can specify the context like so:

    TEMPLATES = [
        {
            'BACKEND': 'django.template.backends.django.DjangoTemplates',
            'DIRS': [],
            'APP_DIRS': True,
            'OPTIONS': {
                'context_processors': [
                    # Already defined Django-related contexts here

                    # All Auth needs this from django
                    'django.core.context_processors.request',
                    
                    # `allauth` specific context processors
                    'allauth.account.context_processors.account',
                    'allauth.socialaccount.context_processors.socialaccount',
                ],
            },
        },
    ]

    AUTHENTICATION_BACKENDS = (
        ...
        # Needed to login by username in Django admin, regardless of `allauth`
        'django.contrib.auth.backends.ModelBackend',

        # `allauth` specific authentication methods, such as login by e-mail
        'allauth.account.auth_backends.AuthenticationBackend',
        ...
    )

    INSTALLED_APPS = (
        ...
        # The Django sites framework is required
        'django.contrib.sites',
{'fraction_non_alphanumeric': 0.10201149425287356, 'fraction_numerical': 0.0021551724137931034, 'mean_word_length': 1.9946236559139785, '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': '7209408', 'n_tokens_mistral': 762, 'n_tokens_neox': 716, 'n_words': 166}