text: """
  Django settings for shoppingList project.
  
  Generated by 'django-admin startproject' using Django 2.2.6.
  
  For more information on this file, see
  https://docs.djangoproject.com/en/2.2/topics/settings/
  
  For the full list of settings and their values, see
  https://docs.djangoproject.com/en/2.2/ref/settings/
  """
  
  import os
  import environ
  
  # Build paths inside the project like this: os.path.join(BASE_DIR, ...)
  BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
  env = environ.Env()
  environ.Env.read_env(os.path.join(BASE_DIR, '.env'))
  
  # Quick-start development settings - unsuitable for production
  # See https://docs.djangoproject.com/en/2.2/howto/deployment/checklist/
  
  ALLOWED_HOSTS = ['*']
  
  
  # Application definition
  
  INSTALLED_APPS = [
      'channels',
      'django.contrib.admin',
      'django.contrib.auth',
      'django.contrib.contenttypes',
      'django.contrib.sessions',
      'django.contrib.messages',
      'django.contrib.staticfiles',
  
      # external apps
      'rest_framework',
      'rest_framework.authtoken',
  
      # internal apps
      'shoppingList.apps.account',
      'shoppingList.apps.shoppingItems',
      'shoppingList.apps.notifier',
  ]
  
  AUTH_USER_MODEL = 'account.User'
  
  REST_FRAMEWORK = {
      'NON_FIELD_ERRORS_KEY': 'error',
  
      # by default every user should be authenticated
      'DEFAULT_PERMISSION_CLASSES': (
          'rest_framework.permissions.AllowAny',
      ),
  
      'DEFAULT_AUTHENTICATION_CLASSES': (
          # specifies a local custom authentication class
          'shoppingList.apps.account.backends.JWTAuthentication',
      ),
  
      'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.PageNumberPagination',  # noqa
      'PAGE_SIZE': env.int('PAGE_SIZE', 10)
  }
  
  MIDDLEWARE = [
      'django.middleware.security.SecurityMiddleware',
      'django.contrib.sessions.middleware.SessionMiddleware',
      'django.middleware.common.CommonMiddleware',
      'django.middleware.csrf.CsrfViewMiddleware',
      'django.contrib.auth.middleware.AuthenticationMiddleware',
      'django.contrib.messages.middleware.MessageMiddleware',
      'django.middleware.clickjacking.XFrameOptionsMiddleware',
  ]
  
  ROOT_URLCONF = 'shoppingList.urls'
  
  TEMPLATES = [
      {
          'BACKEND': 'django.template.backends.django.DjangoTemplates',
          'DIRS': [],
          'APP_DIRS': True,
          'OPTIONS': {
              'context_processors': [
                  'django.template.context_processors.debug',
                  'django.template.context_processors.request',
                  'django.contrib.auth.context_processors.auth',
                  'django.contrib.messages.context_processors.messages',
              ],
          },
      },
  ]
  
  WSGI_APPLICATION = 'shoppingList.wsgi.application'
  ASGI_APPLICATION = 'shoppingList.apps.notifier.routing.application'
  
  # Configure Channels
  CHANNEL_LAYERS = {
      'default': {
          'BACKEND': 'channels_redis.core.RedisChannelLayer',
          'CONFIG': {
              "hosts": [env.str('REDIS_URL')],
          },
      },
  }
  
  
  # Database
  # https://docs.djangoproject.com/en/2.2/ref/settings/#databases
  
  # configure application environments
  project_root = environ.Path(__file__) - 3
  TEST_RUNNER = 'shoppingList.runner.PytestTestRunner'
  SITE_ROOT = project_root()
  DEBUG = env.bool('DEBUG', default=False)
  TEMPLATE_DEBUG = DEBUG
  SECRET_KEY = env.str('SECRET_KEY')
  
  DATABASES = {
      'default': env.db()
  }
  
  
  # Password validation
  # https://docs.djangoproject.com/en/2.2/ref/settings/#auth-password-validators
  
  AUTH_PASSWORD_VALIDATORS = [
      {
          'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',   # noqa E501
      },
      {
          'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',   # noqa E501
      },
      {
          'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',   # noqa E501
      },
      {
          'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',   # noqa E501
      },
  ]
  
  
  # Internationalization
  # https://docs.djangoproject.com/en/2.2/topics/i18n/
  
  LANGUAGE_CODE = 'en-us'
  
  TIME_ZONE = 'UTC'
  
  USE_I18N = True
  
  USE_L10N = True
  
  USE_TZ = True
  
  
  # Static files (CSS, JavaScript, Images)
  # https://docs.djangoproject.com/en/2.2/howto/static-files/
  
  STATIC_URL = '/static/'
  