text: import os
  
  from dotenv import find_dotenv, load_dotenv
  
  load_dotenv(find_dotenv())
  
  BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
  MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
  
  MEDIA_URL = '/media/'
  
  
  # 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 = os.getenv("secret_key")
  ENVIRONMENT = os.getenv("ENV")
  
  # SECURITY WARNING: don't run with debug turned on in production!
  DEBUG = True
  
  ALLOWED_HOSTS = [
      "127.0.0.1",
      "localhost"
  ]
  
  # Application definition
  
  INSTALLED_APPS = [
      'django.contrib.admin',
      'django.contrib.auth',
      'django.contrib.contenttypes',
      'django.contrib.sessions',
      'django.contrib.messages',
      'django.contrib.staticfiles',
      'django_nose',
      'corsheaders',          
      'rest_framework',   
      'rachis.apps.resource',
      'rachis.apps.authentication', 
  ]
  
  # Use nose to run all tests
  TEST_RUNNER = 'django_nose.NoseTestSuiteRunner'
  
  # Tell nose to measure coverage on the 'foo' and 'bar' apps
  NOSE_ARGS = [
      '--with-coverage',
      '--cover-package=rachis.apps.authentication',
      '--cover-html'
  ]
  
  MIDDLEWARE = [
      'corsheaders.middleware.CorsMiddleware', 
      '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 = 'rachis.urls'
  
  REST_FRAMEWORK = {
      'NON_FIELD_ERRORS_KEY': 'error',
      
      'DEFAULT_AUTHENTICATION_CLASSES': (
          'rachis.apps.authentication.backends.JWTAuthentication',
          'rest_framework.authentication.SessionAuthentication',
          'rest_framework.authentication.BasicAuthentication',
          'rest_framework.authentication.TokenAuthentication',
      ),
  }
  
  AUTH_USER_MODEL = "authentication.User" 
  
  AUTHENTICATION_BACKENDS = (
      'django.contrib.auth.backends.ModelBackend',
  )
  
  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 = 'rachis.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 = 'en-us'
  
  TIME_ZONE = 'UTC'
  
  USE_I18N = True
  
  USE_L10N = True
  
  USE_TZ = True
  
  
  # Static files (CSS, JavaScript, Images)
  # https://docs.djangoproject.com/en/3.0/howto/static-files/
  
  STATIC_URL = '/static/'
  
  
  EMAIL_BACKEND = os.getenv("EMAIL_BACKEND")
  EMAIL_HOST = os.getenv("EMAIL_HOST")
  EMAIL_PORT = os.getenv("EMAIL_PORT")
  EMAIL_HOST_USER = os.getenv("EMAIL_HOST_USER")
  EMAIL_HOST_PASSWORD = os.getenv("EMAIL_HOST_PASSWORD")
  EMAIL_USE_TLS = os.getenv("EMAIL_HOST_PASSWORD")