text: """
  Django settings for KenyaDelivers project.
  
  Generated by 'django-admin startproject' using Django 3.1.6.
  
  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 os
  from pathlib import Path
  
  # Build paths inside the project like this: BASE_DIR / 'subdir'.
  BASE_DIR = Path(__file__).resolve().parent.parent
  
  
  # Quick-start development settings - unsuitable for production
  # See https://docs.djangoproject.com/en/3.1/howto/deployment/checklist/
  
  # SECURITY WARNING: keep the secret key used in production secret!
  SECRET_KEY = '-&@q-dpgh^s4q9sru&ixk_-72oj74cxfh-@xbiq%l#g9-0qwhl'
  
  # SECURITY WARNING: don't run with debug turned on in production!
  DEBUG = True
  
  ALLOWED_HOSTS = []
  
  
  TINYMCE_DEFAULT_CONFIG = {
      'height': 360,
      'width': 800,
      'cleanup_on_startup': True,
      'custom_undo_redo_levels': 20,
      'selector': 'textarea',
      'theme': 'modern',
      'plugins': '''
              textcolor save link image media preview codesample contextmenu
              table code lists fullscreen  insertdatetime  nonbreaking
              contextmenu directionality searchreplace wordcount visualblocks
              visualchars code fullscreen autolink lists  charmap print  hr
              anchor pagebreak
              ''',
      'toolbar1': '''
              fullscreen preview bold italic underline | fontselect,
              fontsizeselect  | forecolor backcolor | alignleft alignright |
              aligncenter alignjustify | indent outdent | bullist numlist table |
              | link image media | codesample |
              ''',
      'toolbar2': '''
              visualblocks visualchars |
              charmap hr pagebreak nonbreaking anchor |  code |
              ''',
      'contextmenu': 'formats | link image',
      'menubar': True,
      'statusbar': True,
      }
  
  
  # Application definition
  
  INSTALLED_APPS = [
      'django.contrib.admin',
      'django.contrib.auth',
      'django.contrib.contenttypes',
      'django.contrib.sessions',
      'django.contrib.messages',
      'django.contrib.staticfiles',
      'service', 
      # Oauth     
      'django.contrib.sites',
      'allauth',
      'allauth.account',
      'allauth.socialaccount',
      'allauth.socialaccount.providers.google',
      # tinymce
      'tinymce',
      'django_cleanup.apps.CleanupConfig',# ryt under ur apps
  
      
  ]
  
  SITE_ID = 1
  
  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 = 'KenyaDelivers.urls'
  
  TEMPLATES = [
      {
          'BACKEND': 'django.template.backends.django.DjangoTemplates',
          'DIRS': ["KenyaDelivers/templates"],
          '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 = 'KenyaDelivers.wsgi.application'
  
  
  # Database
  # https://docs.djangoproject.com/en/3.1/ref/settings/#databases
  
  DATABASES = {
      'default': {
          'ENGINE': 'django.db.backends.sqlite3',
          'NAME': BASE_DIR / 'db.sqlite3',
      }
  }
  
  AUTHENTICATION_BACKENDS = [
      # Needed to login by username in Django admin, regardless of `allauth`
      'django.contrib.auth.backends.ModelBackend',
  
      # `allauth` specific authentication methods, such as login by e-mail
      'allauth.account.auth_backends.AuthenticationBackend',
      ]
  
  # Password validation
  # https://docs.djangoproject.com/en/3.1/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.1/topics/i18n/
  
  LANGUAGE_CODE = 'en-us'
  
  TIME_ZONE = 'Africa/Nairobi'
  
  USE_I18N = True
  
  USE_L10N = True
  
  USE_TZ = True
  
  
  # Static files (CSS, JavaScript, Images)
  # https://docs.djangoproject.com/en/3.1/howto/static-files/
  
  STATIC_URL = '/static/'
  STATICFILES_DIRS = [
      os.path.join(BASE_DIR, 'static')
      ]
  
  AUTH_USER_MODEL = 'service.User'
  
  # for media storage
  MEDIA_URL = '/media/'
  MEDIA_ROOT = os.path.join(BASE_DIR , 'media')
  
  