# Path: django_core/utils/loading.py
# def get_setting(key, **kwargs):
#     """Gets a settings key or raises an improperly configured error.
# 
#     :param key: the settings key to get.
#     :param default: the default value to return if no value is found
#     """
#     has_default = 'default' in kwargs
#     default_val = kwargs.get('default')
# 
#     try:
#         if has_default:
#             return getattr(settings, key, default_val)
#         else:
#             return getattr(settings, key)
#     except Exception as e:
#         raise ImproperlyConfigured(
#             _('"{0}" setting has not been properly set. {1}').format(key, e)
#         )


from urllib.error import URLError
from django_core.utils.loading import get_setting
    from urllib.request import urlopen
    from urllib import urlopen
from __future__ import unicode_literals




try:
    # python 3
except ImportError:
    # python 2


# this is the url to check

# Path: django_core/utils/loading.py
# def get_setting(key, **kwargs):
#     """Gets a settings key or raises an improperly configured error.
# 
#     :param key: the settings key to get.
#     :param default: the default value to return if no value is found
#     """
#     has_default = 'default' in kwargs
#     default_val = kwargs.get('default')
# 
#     try:
#         if has_default:
#             return getattr(settings, key, default_val)
#         else:
#             return getattr(settings, key)
#     except Exception as e:
#         raise ImproperlyConfigured(
#             _('"{0}" setting has not been properly set. {1}').format(key, e)
#         )


# Path: django_core/utils/connections.py
from urllib.error import URLError
from django_core.utils.loading import get_setting
    from urllib.request import urlopen
    from urllib import urlopen

from __future__ import unicode_literals




try:
    # python 3
except ImportError:
    # python 2


# this is the url to check

INTERNET_CONNECTION_URL = get_setting(key='INTERNET_CONNECTION_URL',