<commit_before>USE_I18N = True
LOCALE_PATHS = (os.path.join(ENHYDRIS_PROGRAM_DIR, 'locale'),)

MIDDLEWARE_CLASSES = (
    'django.middleware.common.CommonMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.middleware.locale.LocaleMiddleware',
    'django.middleware.csrf.CsrfViewMiddleware',
    'django.middleware.transaction.TransactionMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.middleware.gzip.GZipMiddleware',
    'django_notify.middleware.NotificationsMiddleware',
    'pagination.middleware.PaginationMiddleware',
    'enhydris.sorting.middleware.SortingMiddleware',
    'django.contrib.messages.middleware.MessageMiddleware',
)

ROOT_URLCONF = 'enhydris.urls'
APPEND_SLASH = True

TEMPLATE_CONTEXT_PROCESSORS = (
    'django.core.context_processors.debug',
    'django.core.context_processors.i18n',
    'django.core.context_processors.media',
    'django.core.context_processors.static',
    'django.core.context_processors.request',
    'django.contrib.auth.context_processors.auth',
    'django.contrib.messages.context_processors.messages',
    'django_notify.context_processors.notifications',
)

TEMPLATE_DIRS = (os.path.join(ENHYDRIS_PROGRAM_DIR, 'templates'),)

INSTALLED_APPS = (
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.staticfiles',
    'django.contrib.markup',
    'grappelli',
    'django.contrib.admin',
    'django.contrib.sites',
    'django.contrib.humanize',
    'django.contrib.gis',

    # Debugging Apps
    'django_extensions',
    'piston',

    # Dependencies
    'south',
    'pagination',
    'enhydris.sorting',
    'profiles',
    'registration',
    'ajax_select',

    # Hydroscope Apps
    'enhydris.dbsync',
    'enhydris.hcore',
    'enhydris.api',
    'enhydris.permissions',
)

NOTIFICATIONS_STORAGE = 'session.SessionStorage'

AJAX_LOOKUP_CHANNELS = {
    'maintainers': dict(model='auth.User', search_field='username'),
}

LOGIN_REDIRECT_URL = '/'
AUTH_PROFILE_MODULE = 'hcore.UserProfile'
USE_OPEN_LAYERS = True 
MIN_VIEWPORT_IN_DEGS = 0.04

HRAIN_IGNORE_ONGOING_EVENT = False

SITE_STATION_FILTER = {}<commit_msg>Fixing #277, internal server errors<commit_after>USE_I18N = True
LOCALE_PATHS = (os.path.join(ENHYDRIS_PROGRAM_DIR, 'locale'),)

MIDDLEWARE_CLASSES = (
    'django.middleware.common.CommonMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.middleware.locale.LocaleMiddleware',
    'django.middleware.csrf.CsrfViewMiddleware',
    'django.middleware.transaction.TransactionMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.middleware.gzip.GZipMiddleware',
    'django_notify.middleware.NotificationsMiddleware',
    'pagination.middleware.PaginationMiddleware',
    'enhydris.sorting.middleware.SortingMiddleware',
    'django.contrib.messages.middleware.MessageMiddleware',
)

ROOT_URLCONF = 'enhydris.urls'
APPEND_SLASH = True

TEMPLATE_CONTEXT_PROCESSORS = (
    'django.core.context_processors.debug',
    'django.core.context_processors.i18n',
    'django.core.context_processors.media',
    'django.core.context_processors.static',
    'django.core.context_processors.request',
    'django.contrib.auth.context_processors.auth',
    'django.contrib.messages.context_processors.messages',
    'django_notify.context_processors.notifications',
)

TEMPLATE_DIRS = (os.path.join(ENHYDRIS_PROGRAM_DIR, 'templates'),)

INSTALLED_APPS = (
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.staticfiles',
    'django.contrib.markup',
    'grappelli',
    'django.contrib.admin',
    'django.contrib.sites',
    'django.contrib.humanize',
    'django.contrib.gis',

    # Debugging Apps
    'django_extensions',
    'piston',

    # Dependencies
    'south',
    'pagination',
    'enhydris.sorting',
    'profiles',
    'registration',
    'ajax_select',

    # Hydroscope Apps
    'enhydris.dbsync',
    'enhydris.hcore',
    'enhydris.api',
    'enhydris.permissions',
)

NOTIFICATIONS_STORAGE = 'session.SessionStorage'

AJAX_LOOKUP_CHANNELS = {
    'maintainers': dict(model='auth.User', search_field='username'),
}

LOGIN_REDIRECT_URL = '/'
AUTH_PROFILE_MODULE = 'hcore.UserProfile'
USE_OPEN_LAYERS = True 
MIN_VIEWPORT_IN_DEGS = 0.04

HRAIN_IGNORE_ONGOING_EVENT = False

SITE_STATION_FILTER = {}

PAGINATION_INVALID_PAGE_RAISES_404 = True
{'fraction_non_alphanumeric': 0.12737006468882445, 'fraction_numerical': 0.004461298237787196, 'mean_word_length': 4.668773704171934, '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': '1019746', 'n_tokens_mistral': 1589, 'n_tokens_neox': 1551, 'n_words': 160}