text: """
  Django settings for yeoboseyo project.
  
  Generated by 'django-admin startproject' using Django 3.1.2.
  
  For more information on this file, see
  https://docs.djangoproject.com/en/3.1/topics/settings/
  
  For the full list of settings and their values, see
  https://docs.djangoproject.com/en/3.1/ref/settings/
  """
  import environ
  import os
  
  ROOT_DIR = environ.Path(__file__) - 1
  APPS_DIR = ROOT_DIR.path('yeoboseyo')
  
  env = environ.Env()
  env_file = str(ROOT_DIR.path('.env'))
  env.read_env(env_file)
  
  # Build paths inside the project like this: os.path.join(BASE_DIR, ...)
  BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
  # Quick-start development settings - unsuitable for production
  # See https://docs.djangoproject.com/en/3.0/howto/deployment/checklist/
  
  # SECURITY WARNING: keep the secret key used in production secret!
  SECRET_KEY = env.str('SECRET_KEY', default='!TOBEDEFINED!'),
  
  # SECURITY WARNING: don't run with debug turned on in production!
  DEBUG = env.bool('DEBUG', default=False),  # set to False when using in production
  
  ALLOWED_HOSTS = env.list('ALLOWED_HOSTS', default=['127.0.0.1', 'localhost'])
  
  # Database
  # https://docs.djangoproject.com/en/3.0/ref/settings/#databases
  DATABASES = {
      'default': {
          'ENGINE': env.str('DB_ENGINE', default='django.db.backends.sqlite3'),
          'NAME': env.str('DB_NAME', default=BASE_DIR + '/' + 'yeoboseyo.sqlite3'),
          'USER': env.str('DB_USER', default=''),
          'PASSWORD': env.str('DB_PASSWORD', default=''),
          'HOST': env.str('DB_HOST', default=''),
          'PORT': env.str('DB_PORT', default=''),
      },
      'TEST': {
          'ENGINE': 'django.db.backends.sqlite3',
          'NAME': BASE_DIR + '/' + 'yeoboseyo-test.sqlite3',
      }
  }
  
  # Application definition
  
  INSTALLED_APPS = [
      'yeoboseyo.apps.YeoboseyoConfig',
      'django.contrib.admin',
      'django.contrib.auth',
      'django.contrib.contenttypes',
      'django.contrib.sessions',
      'django.contrib.messages',
      'django.contrib.staticfiles',
      # 'debug_toolbar',
  ]
  
  MIDDLEWARE = [
      'django.middleware.security.SecurityMiddleware',
      'django.contrib.sessions.middleware.SessionMiddleware',
      # 'debug_toolbar.middleware.DebugToolbarMiddleware',
      'django.middleware.common.CommonMiddleware',
      'django.middleware.csrf.CsrfViewMiddleware',
      'django.contrib.auth.middleware.AuthenticationMiddleware',
      'django.contrib.messages.middleware.MessageMiddleware',
      'django.middleware.clickjacking.XFrameOptionsMiddleware',
  ]
  
  ROOT_URLCONF = 'yeoboseyo.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 = 'yeoboseyo.wsgi.application'
  
  # Password validation
  # https://docs.djangoproject.com/en/3.0/ref/settings/#auth-password-validators
  
  AUTH_PASSWORD_VALIDATORS = [
      {
          'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
      },
      {
          'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
      },
      {
          'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
      },
      {
          'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
      },
  ]
  
  
  # Internationalization
  # https://docs.djangoproject.com/en/3.0/topics/i18n/
  LANGUAGE_CODE = env.str('LANGUAGE_CODE', default='en-en')
  
  TIME_ZONE = env.str('TIME_ZONE', default='UTC')
  
  USE_I18N = env.bool('USE_I18N', default=True)
  
  USE_L10N = env.bool('USE_L10N', default=True)
  
  USE_TZ = env.str('USE_TZ', default='Europe/London')
  
  
  # Static files (CSS, JavaScript, Images)
  # https://docs.djangoproject.com/en/3.1/howto/static-files/
  
  STATIC_URL = '/static/'
  STATIC_ROOT = str(ROOT_DIR) + '/static/'
  
  # Yeoboseyo settings
  JOPLIN_URL = env.str('JOPLIN_URL', default='http://127.0.0.1')
  JOPLIN_PORT = env.int('JOPLIN_PORT', default=41184)
  
  BYPASS_BOZO = env.bool('BYPASS_BOZO', default=True)
  MY_NOTES_FOLDER = env.str('MY_NOTES_FOLDER', default='/home/user/MyNotes')
  
  FORMAT_FROM = env.str('FORMAT_FROM', default='markdown_github')
  FORMAT_TO = env.str('FORMAT_TO', default='html')
  
  MASTODON_INSTANCE = env.str('MASTODON_INSTANCE', default='https://mastodon.social')
  REDDIT_CLIENT_ID = env.str('REDDIT_CLIENT_ID', default='')
  REDDIT_CLIENT_SECRET = env.str('REDDIT_CLIENT_SECRET', default='')
  REDDIT_PASSWORD = env.str('REDDIT_PASSWORD', default='')
  REDDIT_USERAGENT = env.str('REDDIT_USERAGENT',
                             default='Yeoboseyo/1.0 +https://github.com/foxmask/yeoboseyo')
  REDDIT_USERNAME = env.str('REDDIT_USERNAME', default='')
  
  # INTERNAL_IPS = [
  #    # ...
  #    '127.0.0.1',
  #    # ...
  # ]
  