<commit_before># coding: utf-8

import re
from easy_thumbnails.conf import Settings as thumbnail_settings
from unipath import Path

ugettext = lambda s: s


# Allows PyPy to work with Django.
try:
    import psycopg2
except ImportError:
    # Fall back to psycopg2cffi.
    from psycopg2cffi import compat
    compat.register()


BASE_DIR = Path(__file__).ancestor(3)
SITE_URL = '/'

ADMINS = (
    ('<NAME>', '<EMAIL>'),
)
MANAGERS = ADMINS

SEND_BROKEN_LINK_EMAILS = True
EMAIL_SUBJECT_PREFIX = u'[Dezède] '
IGNORABLE_404_URLS = (
    re.compile(r'^/favicon\.ico/?$'),
)

MAINTENANCE_MODE = False
MAINTENANCE_IGNORE_URLS = (
    r'^(?!/admin/).*$',
)

DATABASES = {
    'default': {
        'ENGINE': 'transaction_hooks.backends.postgis',
        'NAME': 'dezede',
        'USER': 'dezede',
        'CONN_MAX_AGE': None,
    },
}

# Internationalization
# https://docs.djangoproject.com/en/1.6/topics/i18n/

LANGUAGE_CODE = 'fr'
TIME_ZONE = 'Europe/Paris'
LANGUAGES = (
    ('fr', ugettext(u'Français')),
    # ('en', ugettext('English')),
    # ('de', ugettext('Deutsch')),
)
USE_I18N = True
USE_L10N = True
USE_TZ = True

SITE_ID = 1

MEDIA_ROOT = BASE_DIR.child('media')
MEDIA_URL = SITE_URL + 'media/'

# Make this unique, and don't share it with anybody.
SECRET_KEY = 'replace_this_with_some_random_string'

WSGI_APPLICATION = 'dezede.wsgi.application'

ROOT_URLCONF = 'dezede.urls'


STATIC_ROOT = BASE_DIR.child('static')
STATIC_URL = SITE_URL + 'static/'
STATICFILES_FINDERS = (
    'django.contrib.staticfiles.finders.FileSystemFinder',
    'django.contrib.staticfiles.finders.AppDirectoriesFinder',
    'compressor.finders.CompressorFinder',
)
STATICFILES_DIRS = (
    BASE_DIR.child('dezede', 'static'),
)


INSTALLED_APPS = (
    'cachalot',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.sites',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'django.contrib.humanize',
    'django.contrib.gis',

    'accounts',
    'dezede',
    'exporter',

    'allauth',
    'allauth.account',
    'allauth.socialaccount',

    'haystack',
    'django_rq',
    'libretto',
    'dossiers',
    'afo',
    'polymorphic_tree',
    'polymorphic',
    'mptt',
    'endless_pagination',
    'eztables',
    'tinymce',
    'grappelli.dashboard',
    'grappelli',
    'rest_framework',
    'crispy_forms',
    'ajax_select',
    'range_slider',
    'easy_thumbnails',
    'image_cropping',
    'reversion',
    'django.contrib.admin',
    'compressor',
    'sekizai',
)
<commit_msg>Retire polymorphic_tree des installed_apps.<commit_after># coding: utf-8

import re
from easy_thumbnails.conf import Settings as thumbnail_settings
from unipath import Path

ugettext = lambda s: s


# Allows PyPy to work with Django.
try:
    import psycopg2
except ImportError:
    # Fall back to psycopg2cffi.
    from psycopg2cffi import compat
    compat.register()


BASE_DIR = Path(__file__).ancestor(3)
SITE_URL = '/'

ADMINS = (
    ('<NAME>', '<EMAIL>'),
)
MANAGERS = ADMINS

SEND_BROKEN_LINK_EMAILS = True
EMAIL_SUBJECT_PREFIX = u'[Dezède] '
IGNORABLE_404_URLS = (
    re.compile(r'^/favicon\.ico/?$'),
)

MAINTENANCE_MODE = False
MAINTENANCE_IGNORE_URLS = (
    r'^(?!/admin/).*$',
)

DATABASES = {
    'default': {
        'ENGINE': 'transaction_hooks.backends.postgis',
        'NAME': 'dezede',
        'USER': 'dezede',
        'CONN_MAX_AGE': None,
    },
}

# Internationalization
# https://docs.djangoproject.com/en/1.6/topics/i18n/

LANGUAGE_CODE = 'fr'
TIME_ZONE = 'Europe/Paris'
LANGUAGES = (
    ('fr', ugettext(u'Français')),
    # ('en', ugettext('English')),
    # ('de', ugettext('Deutsch')),
)
USE_I18N = True
USE_L10N = True
USE_TZ = True

SITE_ID = 1

MEDIA_ROOT = BASE_DIR.child('media')
MEDIA_URL = SITE_URL + 'media/'

# Make this unique, and don't share it with anybody.
SECRET_KEY = 'replace_this_with_some_random_string'

WSGI_APPLICATION = 'dezede.wsgi.application'

ROOT_URLCONF = 'dezede.urls'


STATIC_ROOT = BASE_DIR.child('static')
STATIC_URL = SITE_URL + 'static/'
STATICFILES_FINDERS = (
    'django.contrib.staticfiles.finders.FileSystemFinder',
    'django.contrib.staticfiles.finders.AppDirectoriesFinder',
    'compressor.finders.CompressorFinder',
)
STATICFILES_DIRS = (
    BASE_DIR.child('dezede', 'static'),
)


INSTALLED_APPS = (
    'cachalot',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.sites',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'django.contrib.humanize',
    'django.contrib.gis',

    'accounts',
    'dezede',
    'exporter',

    'allauth',
    'allauth.account',
    'allauth.socialaccount',

    'haystack',
    'django_rq',
    'libretto',
    'dossiers',
    'afo',
    'polymorphic',
    'mptt',
    'endless_pagination',
    'eztables',
    'tinymce',
    'grappelli.dashboard',
    'grappelli',
    'rest_framework',
    'crispy_forms',
    'ajax_select',
    'range_slider',
    'easy_thumbnails',
    'image_cropping',
    'reversion',
    'django.contrib.admin',
    'compressor',
    'sekizai',
)

{'fraction_non_alphanumeric': 0.14953271028037382, 'fraction_numerical': 0.00661993769470405, 'mean_word_length': 3.6196043165467624, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '478524', 'n_tokens_mistral': 2058, 'n_tokens_neox': 1985, 'n_words': 320}