text: """
  Django settings for running_website project.
  
  Generated by 'django-admin startproject' using Django 3.0.2.
  
  For more information on this file, see
  https://docs.djangoproject.com/en/3.0/topics/settings/
  
  For the full list of settings and their values, see
  https://docs.djangoproject.com/en/3.0/ref/settings/
  """
  
  import os
  import dj_database_url
  from dotenv import load_dotenv
  
  load_dotenv()
  
  # 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/
  
  # SECRET KEY - Use the key found below for development, but make sure to use a different one for production
  # SECURITY WARNING: keep the secret key used in production secret!
  SECRET_KEY = os.environ.get('DJANGO_SECRET_KEY', '+d-s_moa4$#f#2@35s7kj4_@atn#3&@56_i6vlb*zh9hz63+(0')
  
  # DEBUG will be set to True only if there isn't an environment var set to 'False'
  # SECURITY WARNING: don't run with debug turned on in production!
  DEBUG = not (os.environ.get('DEBUG') == 'False')
  
  ALLOWED_HOSTS = ['127.0.0.1', 'running-website.herokuapp.com','running-website-eu.herokuapp.com']
  
  
  # Application definition
  
  INSTALLED_APPS = [
      'django.contrib.admin',
      'django.contrib.auth',
      'django.contrib.contenttypes',
      'django.contrib.sessions',
      'django.contrib.messages',
      'django.contrib.staticfiles',
      'django.contrib.gis',
      'running_dashboard',
  ]
  
  MIDDLEWARE = [
      'django.middleware.security.SecurityMiddleware',
      'whitenoise.middleware.WhiteNoiseMiddleware',
      '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 = 'running_website.urls'
  
  TEMPLATES = [
      {
          'BACKEND': 'django.template.backends.django.DjangoTemplates',
          'DIRS': [os.path.join(BASE_DIR, 'templates'),
                   os.path.join(BASE_DIR, 'templates', 'registration')],
          '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 = 'running_website.wsgi.application'
  
  
  # Database
  # https://docs.djangoproject.com/en/3.0/ref/settings/#databases
  
  DATABASES = {
      'default': {
          'ENGINE': 'django.contrib.gis.db.backends.postgis',
          'NAME': 'running_website',
          'USER': 'local_user',
          'PASSWORD': 'password',
          'HOST': 'localhost',
          'PORT': '5432'
      }
  }
  
  # Heroku: Update database configuration from $DATABASE_URL.
  db_from_env = dj_database_url.config(conn_max_age=500)
  DATABASES['default'].update(db_from_env)
  DATABASES['default']['ENGINE'] = 'django.contrib.gis.db.backends.postgis'
  
  
  # 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 = 'en-us'
  
  TIME_ZONE = 'Asia/Jerusalem'
  
  USE_I18N = True
  
  USE_L10N = True
  
  USE_TZ = True
  
  
  # Static files (CSS, JavaScript, Images)
  # https://docs.djangoproject.com/en/3.0/howto/static-files/
  
  # The absolute path to the directory where collectstatic will collect static files for deployment.
  STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
  
  # The URL to use when referring to static files (where they will be served from)
  STATIC_URL = '/static/'
  
  # Redirect to home URL after login (Default redirects to /accounts/profile/)
  LOGIN_REDIRECT_URL = '/'
  
  EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
  
  EMAIL_USE_TLS = True
  EMAIL_HOST = 'smtp.gmail.com'
  EMAIL_HOST_USER = os.getenv('EMAIL_HOST_USER')
  EMAIL_HOST_PASSWORD = os.getenv('EMAIL_HOST_PASSWORD')
  EMAIL_PORT = 587
  
  GDAL_LIBRARY_PATH = os.getenv('GDAL_LIBRARY_PATH')
  GEOS_LIBRARY_PATH = os.getenv('GEOS_LIBRARY_PATH')
  
  
  