text: import os
  from pathlib import Path
  
  from decouple import config, Csv
  
  BASE_DIR = Path(__file__).resolve().parent.parent
  
  SECRET_KEY = config('SECRET_KEY')
  
  DEBUG = config('DEBUG', default=True, cast=bool)
  
  ALLOWED_HOSTS = config('ALLOWED_HOSTS', cast=Csv())
  
  INSTALLED_APPS = [
      'django.contrib.admin',
      'django.contrib.auth',
      'django.contrib.contenttypes',
      'django.contrib.sessions',
      'django.contrib.messages',
      'django.contrib.staticfiles',
      'django.contrib.sites',
      'django.contrib.humanize',
  
      'allauth',
      'allauth.account',
      'allauth.socialaccount',
      'allauth.socialaccount.providers.facebook',
      'allauth.socialaccount.providers.google',
  
      'smartfields',
      'debug_toolbar',
      'rest_framework',
      'rest_framework.authtoken',
      'mptt',
  
      'accounts',
      'category',
      'products',
      'carts',
      'orders',
  ]
  
  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',
      'debug_toolbar.middleware.DebugToolbarMiddleware',
  ]
  
  ROOT_URLCONF = 'shop.urls'
  
  TEMPLATES = [
      {
          'BACKEND': 'django.template.backends.django.DjangoTemplates',
          'DIRS': ['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',
                  'shop.context_processors.menu_links',
                  'shop.context_processors.counter',
              ],
          },
      },
  ]
  
  WSGI_APPLICATION = 'shop.wsgi.application'
  
  DATABASES = {
      'default': {
          'ENGINE': config('ENGINE'),
          'USER': config('DB_USER'),
          'NAME': config('NAME'),
          'PASSWORD': config('PASSWORD'),
          'HOST': config('HOST'),
          'PORT': config('PORT'),
      }
  }
  
  AUTHENTICATION_BACKENDS = ['django.contrib.auth.backends.AllowAllUsersModelBackend']
  
  AUTH_USER_MODEL = 'accounts.Account'
  
  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',
      },
  ]
  
  LANGUAGE_CODE = config('LANGUAGE_CODE')
  
  TIME_ZONE = config('TIME_ZONE')
  
  USE_I18N = True
  
  USE_L10N = True
  
  USE_TZ = True
  
  DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
  
  SILENCED_SYSTEM_CHECKS = ['auth.W004']
  
  STATIC_URL = '/static/'
  STATIC_ROOT = os.path.join(BASE_DIR, 'static')
  
  MEDIA_URL = '/media/'
  MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
  
  INTERNAL_IPS = [
      '127.0.0.1',
  ]
  
  EMAIL_HOST = config('EMAIL_HOST')
  EMAIL_PORT = config('EMAIL_PORT', cast=int)
  EMAIL_HOST_USER = config('EMAIL_HOST_USER')
  EMAIL_HOST_PASSWORD = config('EMAIL_HOST_PASSWORD')
  EMAIL_USE_TLS = config('EMAIL_USE_TLS', cast=bool)
  EMAIL_USE_SSL = config('EMAIL_USE_SSL', cast=bool)
  SERVER_EMAIL = config('SERVER_EMAIL')
  DEFAULT_FROM_EMAIL = config('DEFAULT_FROM_EMAIL')
  
  SITE_ID = config('SITE_ID', cast=int)
  
  LOGIN_REDIRECT_URL = 'category_main'
  
  ACCOUNT_FORMS = {'signup': 'accounts.forms.RegistrationForm'}
  