text: """
  Django settings for django_srv project.
  
  Generated by 'django-admin startproject' using Django 1.11.4.
  
  For more information on this file, see
  https://docs.djangoproject.com/en/1.11/topics/settings/
  
  For the full list of settings and their values, see
  https://docs.djangoproject.com/en/1.11/ref/settings/
  """
  
  import os
  
  # Build paths inside the project like this: os.path.join(BASE_DIR, ...)
  BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
  
  
  # CKEditor definition
  # https://github.com/django-ckeditor/django-ckeditor
  
  CKEDITOR_UPLOAD_SLUGIFY_FILENAME = False
  
  CKEDITOR_RESTRICT_BY_USER = True
  
  CKEDITOR_BROWSE_SHOW_DIRS = True
  
  CKEDITOR_CONFIGS = {
      'default': {
          'skin': 'moono',
          'toolbar_Basic': [
              ['Source', '-', 'Bold', 'Italic']
          ],
          'toolbar': 'full',
          'tabSpaces': 4,
          'extraPlugins': ','.join([
              # 'markdown',
              'uploadimage',
              'codesnippet',
              'copyformatting',
              'div',
              'autolink',
              'autoembed',
              'embedsemantic',
              'autogrow',
              'devtools',
              'widget',
              'lineutils',
              'clipboard',
              'dialog',
              'dialogui',
              'elementspath'
          ]),
      },
      'simple_toolbar': {
          'skin': 'moono',
          'toolbar': [
              ['Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'RemoveFormat'],
              ['Image', 'Update', 'Flash', 'Table', 'HorizontalRule'],
              ['TextColor', 'BGColor'],
              ['Smiley', 'SpecialChar'], ['Source'],
          ],
          'width': 840,
          'height': 300,
      }
  }
  
  # Application definition
  
  REST_FRAMEWORK = {
      'DATETIME_FORMAT': "%Y.%m.%d %H:%M:%S",
  }
  
  INSTALLED_APPS = [
      'blog_v2.apps.BlogV2Config',
      'blog.apps.BlogConfig',
      'account.apps.AccountConfig',
      'storage.apps.StorageConfig',
      'ckeditor',
      'ckeditor_uploader',
      'django.contrib.admin',
      'django.contrib.auth',
      'django.contrib.contenttypes',
      'django.contrib.sessions',
      'django.contrib.messages',
      'django.contrib.staticfiles',
      'rest_framework',
  ]
  
  MIDDLEWARE = [
      'django.middleware.security.SecurityMiddleware',
      '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',
  ]
  
  ROOT_URLCONF = 'django_srv.urls'
  
  TEMPLATES = [
      {
          'BACKEND': 'django.template.backends.django.DjangoTemplates',
          'DIRS': ['generics/templates'],
          'APP_DIRS': True,
          'OPTIONS': {
              'context_processors': [
                  'django.template.context_processors.i18n',
                  'django.template.context_processors.debug',
                  'django.template.context_processors.request',
                  'django.contrib.auth.context_processors.auth',
                  'django.contrib.messages.context_processors.messages',
              ],
          },
      },
  ]
  
  WSGI_APPLICATION = 'django_srv.wsgi.application'
  
  
  # Password validation
  # https://docs.djangoproject.com/en/1.11/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/1.11/topics/i18n/
  
  LANGUAGES = (
      ('en', 'English'),
      ('ru', 'Russian'),
  )
  
  LANGUAGE_CODE = 'ru-ru'
  
  TIME_ZONE = 'Europe/Moscow'
  
  DATETIME_FORMAT = '%d-%m-%Y %H:%M:S'
  
  USE_I18N = True
  
  USE_L10N = True
  
  USE_TZ = True
  
  LOCALE_PATHS = (
      os.path.join(BASE_DIR, 'locale'),
  )
  
  # Static files (CSS, JavaScript, Images)
  # https://docs.djangoproject.com/en/1.11/howto/static-files/
  
  MEDIA_ROOT = os.path.join(BASE_DIR, "media", "files")
  
  MEDIA_URL = "/media/"
  
  STATIC_ROOT = os.path.join(BASE_DIR, "static")
  
  STATIC_URL = "/static/"
  
  CKEDITOR_BASEPATH = "/static/ckeditor/ckeditor"
  
  CKEDITOR_UPLOAD_PATH = "uploads/"
  
  STATICFILES_FINDERS = [
      "django.contrib.staticfiles.finders.FileSystemFinder",
      "django.contrib.staticfiles.finders.AppDirectoriesFinder",
  ]
  
  from .local_settings import *