<commit_before># -*- coding: UTF-8 -*-
# Django settings for pycon project.
import os
import os.path
import sys

# Configure DEBUG settings
if os.environ.get('DEBUG') == 'True':
    DEBUG = True
else:
    DEBUG = False
    
# For development, we always run in debug mode...
#DEBUG=True

# We want to use HTTPS for everything and not fiddle with docker or gunicorn
# setups.
#
# See http://security.stackexchange.com/questions/8964/trying-to-make-a-django-based-s
# for details.
#
# Note: This doesn't really help all that much. In order to Django behave, you
# have to configure your proxy to send proper X-Forward-* headers and enable
# SECURE_PROXY_SSL_HEADER.
#
if not DEBUG:
    # Only set this in production mode, since debug servers typically don't
    # have HTTPS set up.
    os.environ['HTTPS'] = 'on'

import django

from distutils.version import StrictVersion

#from django.utils.translation import ugettext as _
_ = lambda x:x

LESS_THAN_18 = StrictVersion(django.get_version()) < StrictVersion('1.8')
LESS_THAN_17 = StrictVersion(django.get_version()) < StrictVersion('1.7')

ADMINS = (
    ('web-wg', '<EMAIL>'),
)

MANAGERS = ADMINS

ALLOWED_HOSTS = os.environ.get("ALLOWED_HOSTS", '*').split(',')
#APPEND_SLASH = False

# HTTPS configuration
HTTPS = True
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
<commit_msg>Disable HTTPS in DEBUG mode.<commit_after># -*- coding: UTF-8 -*-
# Django settings for pycon project.
import os
import os.path
import sys

# Configure DEBUG settings
if os.environ.get('DEBUG') == 'True':
    DEBUG = True
else:
    DEBUG = False
    
# For development, we always run in debug mode...
#DEBUG=True

# We want to use HTTPS for everything and not fiddle with docker or gunicorn
# setups.
#
# See http://security.stackexchange.com/questions/8964/trying-to-make-a-django-based-s
# for details.
#
# Note: This doesn't really help all that much. In order to Django behave, you
# have to configure your proxy to send proper X-Forward-* headers and enable
# SECURE_PROXY_SSL_HEADER.
#
if not DEBUG:
    # Only set this in production mode, since debug servers typically don't
    # have HTTPS set up.
    os.environ['HTTPS'] = 'on'
    # HTTPS configuration
    HTTPS = True
    SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
else:
    # Turn off HTTPS
    if 'HTTPS' in os.environ:
        del os.environ['HTTPS']
    HTTPS = False

import django

from distutils.version import StrictVersion

#from django.utils.translation import ugettext as _
_ = lambda x:x

LESS_THAN_18 = StrictVersion(django.get_version()) < StrictVersion('1.8')
LESS_THAN_17 = StrictVersion(django.get_version()) < StrictVersion('1.7')

ADMINS = (
    ('web-wg', '<EMAIL>'),
)

MANAGERS = ADMINS

ALLOWED_HOSTS = os.environ.get("ALLOWED_HOSTS", '*').split(',')
#APPEND_SLASH = False

{'fraction_non_alphanumeric': 0.11725115125752746, 'fraction_numerical': 0.009210060219624512, 'mean_word_length': 3.9982300884955753, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 5, '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': '6465360', 'n_tokens_mistral': 974, 'n_tokens_neox': 955, 'n_words': 288}