text: """
  Django settings for core project.
  
  Generated by 'django-admin startproject' using Django 2.1.7.
  
  For more information on this file, see
  https://docs.djangoproject.com/en/2.1/topics/settings/
  
  For the full list of settings and their values, see
  https://docs.djangoproject.com/en/2.1/ref/settings/
  """
  
  # Build paths inside the project like this: os.path.join(BASE_DIR, ...)
  import os
  
  from django.utils.translation import gettext_lazy as _
  
  
  PROJECT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
  
  BASE_DIR = os.path.dirname(PROJECT_DIR)
  
  
  # Quick-start development settings - unsuitable for production
  # See https://docs.djangoproject.com/en/2.1/howto/deployment/checklist/
  
  
  # Application definition
  
  INSTALLED_APPS = [
      "semkov.api",
      "semkov.apps.ads",
      "semkov.apps.core",
      "semkov.apps.forum",
      "semkov.apps.home",
      "semkov.apps.pages",
      "semkov.apps.search",
      "semkov.apps.user",
  
      "wagtail.api.v2",
      "wagtail.contrib.forms",
      "wagtail.contrib.redirects",
      "wagtail.embeds",
      "wagtail.sites",
      "wagtail.users",
      "wagtail.snippets",
      "wagtail.documents",
      "wagtail.images",
      "wagtail.search",
      "wagtail.admin",
      "wagtail.core",
  
      "modelcluster",
      "taggit",
      "compressor",
  
      "django.contrib.admin",
      "django.contrib.auth",
      "django.contrib.contenttypes",
      "django.contrib.sessions",
      "django.contrib.sitemaps",
      "django.contrib.messages",
      "django.contrib.staticfiles",
  ]
  
  MIDDLEWARE = [
      "django.contrib.sessions.middleware.SessionMiddleware",
      "django.middleware.locale.LocaleMiddleware",
      "django.middleware.common.CommonMiddleware",
      "django.middleware.csrf.CsrfViewMiddleware",
      "django.contrib.auth.middleware.AuthenticationMiddleware",
      "django.contrib.messages.middleware.MessageMiddleware",
      "django.middleware.clickjacking.XFrameOptionsMiddleware",
      "django.middleware.security.SecurityMiddleware",
      "django.middleware.gzip.GZipMiddleware",
      "wagtail.contrib.redirects.middleware.RedirectMiddleware",
      "semkov.apps.core.middleware.language.LocaleMiddleware",
  ]
  
  ROOT_URLCONF = "semkov.urls"
  
  TEMPLATES = [
      {
          "BACKEND": "django.template.backends.django.DjangoTemplates",
          "DIRS": [os.path.join(PROJECT_DIR, "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 = "semkov.wsgi.application"
  
  AUTH_USER_MODEL = "user.User"
  
  # WAGTAIL_USER_EDIT_FORM = "user.forms.CustomUserEditForm"
  # WAGTAIL_USER_CREATION_FORM = "user.forms.CustomUserCreationForm"
  # WAGTAIL_USER_CUSTOM_FIELDS = ["identifier", "id_address"]
  
  
  # Database
  # https://docs.djangoproject.com/en/2.1/ref/settings/#databases
  
  DATABASES = {
      "default": {
          "ENGINE": "django.db.backends.sqlite3",
          "NAME": os.path.join(BASE_DIR, "db.sqlite3"),
      }
  }
  
  # Cache backend
  # https://docs.djangoproject.com/en/2.1/topics/cache/
  
  CACHES = {"default": {"BACKEND": "django.core.cache.backends.dummy.DummyCache"}}
  
  
  # Password validation
  # https://docs.djangoproject.com/en/2.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/2.1/topics/i18n/
  
  LANGUAGE_CODE = "ru"
  
  LANGUAGES = [("ru", _("Russian")), ("en", _("English"))]
  
  LOCALE_PATHS = (os.path.join(PROJECT_DIR, "locale"),)
  
  TIME_ZONE = "UTC"
  
  USE_I18N = True
  
  USE_L10N = True
  
  USE_TZ = True
  
  
  # Static files (CSS, JavaScript, Images)
  # https://docs.djangoproject.com/en/2.1/howto/static-files/
  
  STATICFILES_FINDERS = [
      "django.contrib.staticfiles.finders.FileSystemFinder",
      "django.contrib.staticfiles.finders.AppDirectoriesFinder",
      "compressor.finders.CompressorFinder",
  ]
  
  STATICFILES_DIRS = [os.path.join(PROJECT_DIR, "static")]
  
  # ManifestStaticFilesStorage is recommended in production, to prevent outdated
  # Javascript / CSS assets being served from cache (e.g. after a Wagtail upgrade).
  # See https://docs.djangoproject.com/en/2.1/ref/contrib/staticfiles/#manifeststaticfilesstorage
  STATICFILES_STORAGE = "django.contrib.staticfiles.storage.StaticFilesStorage"
  
  STATIC_ROOT = os.path.join(BASE_DIR, "static")
  STATIC_URL = "/static/"
  
  MEDIA_ROOT = os.path.join(BASE_DIR, "media")
  MEDIA_URL = "/media/"
  
  
  # Wagtail settings
  
  WAGTAIL_SITE_NAME = "semkov"
  
  WAGTAIL_FRONTEND_LOGIN_URL = "/user/login/"
  
  BASE_URL = "https://semkov-gorodok.by"
  
  # Email settings
  
  EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend"
  
  DEFAULT_FROM_EMAIL = "no-reply@manti.by"
  DEFAULT_TO_EMAIL = "manti.by@gmail.com"
  
  # Static compressor settings
  
  COMPRESS_OUTPUT_DIR = "cache"
  COMPRESS_STORAGE = "compressor.storage.GzipCompressorFileStorage"
  COMPRESS_CSS_FILTERS = [
      "compressor.filters.css_default.CssAbsoluteFilter",
      "compressor.filters.cssmin.CSSMinFilter",
  ]
  COMPRESS_CSS_HASHING_METHOD = None
  
  COMPRESS_ENABLED = False
  
  # Twilio account
  
  TWILIO_FROM_NUMBER = "+18577031034"
  TWILIO_ACCOUNT_SID = "AC5e57d43eceff89b329212c270e8a690e"
  TWILIO_AUTH_TOKEN = ""
  