We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
SE yml fix delivery 3k -> 5k
[origin trello task](https://trello.com/c/LyLVDakS/298-se-%D0%BF%D1%80%D0%B0%D0%B2%D1%8C-yml)

Внезапно обноружили, что через фид передается( в теге <sales_notes>) неверная инфа о доставке.
Исправь на 5к.

--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `shopelectro/settings/base.py`
Content:
```
1 """
2 Django settings for shopelectro project.
3 
4 Generated by 'django-admin startproject' using Django 1.9.5.
5 
6 For more information on this file, see
7 https://docs.djangoproject.com/en/1.9/topics/settings/
8 
9 For the full list of settings and their values, see
10 https://docs.djangoproject.com/en/1.9/ref/settings/
11 """
12 
13 import os
14 from datetime import datetime
15 
16 import dj_database_url
17 
18 # Build paths inside the project like this: os.path.join(BASE_DIR, ...)
19 BASE_DIR = os.path.dirname(os.path.dirname(
20     os.path.dirname(os.path.abspath(__file__))))
21 
22 # Quick-start development settings - unsuitable for production
23 # See https://docs.djangoproject.com/en/1.9/howto/deployment/checklist/
24 
25 # SECURITY WARNING: keep the secret key used in production secret!
26 SECRET_KEY = os.environ.get('SECRET_KEY', 'so_secret_key')
27 
28 # SECURITY WARNING: don't run with debug turned on in production!
29 DEBUG = True
30 
31 # http://bit.ly/sorl-thumbnail-docs
32 THUMBNAIL_DEBUG = False
33 
34 ALLOWED_HOSTS = ['*']
35 
36 if os.environ.get('TEST_ENV', False):
37     # disable https in CI
38     # https://docs.djangoproject.com/en/1.9/ref/settings/#secure-proxy-ssl-header
39     SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'http')
40 
41 # Enable in frame loading for Ya.Metric
42 # https://docs.djangoproject.com/es/1.10/ref/clickjacking/
43 # https://yandex.ru/support/metrika/general/counter-webvisor.xml#download-page
44 X_FRAME_OPTIONS = 'ALLOW-FROM http://webvisor.com'
45 
46 # Application definition
47 INSTALLED_APPS = [
48     # https://docs.djangoproject.com/en/1.9/ref/contrib/admin/#django.contrib.admin.autodiscover
49     'django.contrib.contenttypes',
50     'django.contrib.auth',
51     'django.contrib.messages',
52     'django.contrib.redirects',
53     'django.contrib.sessions',
54     'django.contrib.sitemaps',
55     'django.contrib.sites',
56     'django.contrib.staticfiles',
57     'django.contrib.humanize',
58     'django_user_agents',
59     'generic_admin',
60     'django.contrib.admin.apps.SimpleAdminConfig',
61     'debug_toolbar',
62     'mptt',
63     'widget_tweaks',
64     'sorl.thumbnail',
65     'images',
66     'pages',
67     'catalog',
68     'ecommerce',
69     'shopelectro',
70 ]
71 
72 MIDDLEWARE = [
73     'django.middleware.security.SecurityMiddleware',
74     'django.contrib.sessions.middleware.SessionMiddleware',
75     'django.middleware.common.CommonMiddleware',
76     'django.middleware.csrf.CsrfViewMiddleware',
77     'django.contrib.auth.middleware.AuthenticationMiddleware',
78     'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
79     'django.contrib.messages.middleware.MessageMiddleware',
80     'django.middleware.clickjacking.XFrameOptionsMiddleware',
81     'django.contrib.redirects.middleware.RedirectFallbackMiddleware',
82     'django.middleware.locale.LocaleMiddleware',
83     'django_user_agents.middleware.UserAgentMiddleware',
84     'debug_toolbar.middleware.DebugToolbarMiddleware',
85 ]
86 
87 ROOT_URLCONF = 'shopelectro.urls'
88 
89 TEMPLATES = [
90     {
91         'BACKEND': 'django.template.backends.django.DjangoTemplates',
92         'DIRS': [os.path.join(BASE_DIR, 'templates')],
93         'APP_DIRS': True,
94         'OPTIONS': {
95             'context_processors': [
96                 'django.template.context_processors.debug',
97                 'django.template.context_processors.media',
98                 'django.template.context_processors.request',
99                 'django.template.context_processors.static',
100                 'django.contrib.auth.context_processors.auth',
101                 'django.contrib.messages.context_processors.messages',
102                 'ecommerce.context_processors.cart',
103                 'shopelectro.context_processors.shop',
104             ],
105         },
106     },
107 ]
108 
109 WSGI_APPLICATION = 'shopelectro.wsgi.application'
110 
111 # Password validation
112 # https://docs.djangoproject.com/en/1.9/ref/settings/#auth-password-validators
113 
114 AUTH_PASSWORD_VALIDATORS = [
115     {
116         'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
117     },
118     {
119         'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
120     },
121     {
122         'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
123     },
124     {
125         'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
126     },
127 ]
128 
129 # Internationalization
130 # https://docs.djangoproject.com/en/1.9/topics/i18n/
131 
132 LOCALE_NAME = 'en_US'
133 TIME_ZONE = 'UTC'
134 
135 USE_I18N = True
136 USE_L10N = True
137 USE_TZ = True
138 
139 LOCALE_PATHS = [os.path.join(BASE_DIR, 'shopelectro/locale')]
140 FORMAT_MODULE_PATH = [
141     'shopelectro.formats',
142 ]
143 
144 # Static files (CSS, JavaScript, Images)
145 # https://docs.djangoproject.com/en/1.9/howto/static-files/
146 STATIC_URL = '/static/'
147 STATIC_ROOT = os.path.join(BASE_DIR, 'static')
148 ASSETS_DIR = os.path.join(BASE_DIR, 'assets')
149 
150 STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.ManifestStaticFilesStorage'
151 
152 STATICFILES_DIRS = [
153     os.path.join(BASE_DIR, 'front/build'),
154     ASSETS_DIR,
155 ]
156 
157 MEDIA_URL = '/media/'
158 MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
159 
160 # It is fake-url. Correct url will be created on `docker-compose up` stage from `docker/.env`
161 DATABASE_URL = 'postgres://user:pass@db_name/table'
162 DATABASES = {
163     'default': dj_database_url.config(
164         env='DATABASE_URL',
165         default=DATABASE_URL,
166     )
167 }
168 
169 LOGGING = {
170     'version': 1,
171     'disable_existing_loggers': False,
172     'handlers': {
173         'console': {
174             'class': 'logging.StreamHandler',
175         },
176     },
177     'loggers': {
178         'django': {
179             'handlers': ['console'],
180             'level': os.getenv('DJANGO_LOG_LEVEL', 'INFO'),
181         },
182     },
183 }
184 
185 SITE_CREATED = datetime(2013, 1, 1)
186 
187 LOCALHOST = 'http://127.0.0.1:8000/'
188 BASE_URL = 'https://www.shopelectro.ru'
189 
190 PLACEHOLDER_IMAGE = 'images/logo.png'
191 PLACEHOLDER_ALT = 'Логотип компании Shopelectro'
192 
193 # Autocomplete and search settings
194 SEARCH_SEE_ALL_LABEL = 'Смотреть все результаты'
195 
196 # For sitemaps and sites framework
197 SITE_ID = 1
198 SITE_DOMAIN_NAME = 'www.shopelectro.ru'
199 
200 # Used to retrieve instances in ecommerce.Cart
201 CART_ID = 'cart'
202 
203 # Used to define choices attr in definition of Order.payment_type field
204 PAYMENT_OPTIONS = (
205     ('cash', 'Наличные'),
206     ('cashless', 'Безналичные и денежные переводы'),
207     ('AC', 'Банковская карта'),
208     ('PC', 'Яндекс.Деньги'),
209     ('GP', 'Связной (терминал)'),
210     ('AB', 'Альфа-Клик'),
211 )
212 
213 # It is fake-pass. Correct pass will be created on `docker-compose up` stage from `docker/.env`
214 YANDEX_SHOP_PASS = os.environ.get('YANDEX_SHOP_PASS', 'so_secret_pass')
215 
216 # Used for order's email in ecommerce app
217 FAKE_ORDER_NUMBER = 6000
218 
219 # Subjects for different types of emails sent from SE.
220 EMAIL_SUBJECTS = {
221     'call': 'Обратный звонок',
222     'order': 'Заказ №{0.fake_order_number}',
223     'yandex_order': 'Заказ №{0.fake_order_number} | Яндекс.Касса',
224     'one_click': 'Заказ в один клик №{0.fake_order_number}',
225     'ya_feedback_request': 'Оцените нас на Яндекс.Маркете',
226 }
227 
228 # Email configs
229 # It is fake-pass. Correct pass will be created on `docker-compose up` stage from `docker/.env`
230 EMAIL_HOST_PASSWORD = os.environ.get('EMAIL_HOST_PASSWORD', 'so_secret_pass')
231 EMAIL_HOST_USER = 'info@shopelectro.ru'
232 EMAIL_USE_TLS = True
233 EMAIL_HOST = 'smtp.yandex.ru'
234 EMAIL_PORT = 587
235 EMAIL_SENDER = 'info@shopelectro.ru'
236 EMAIL_RECIPIENT = 'info@shopelectro.ru'
237 SHOP_EMAIL = 'info@shopelectro.ru'
238 
239 # FTP configs
240 FTP_USER = os.environ.get('FTP_USER', 'user')
241 FTP_PASS = os.environ.get('FTP_PASS', 'pass')
242 FTP_IP = os.environ.get('FTP_IP', '0.0.0.0')
243 
244 # Used in admin image uploads
245 MODEL_TYPES = {
246     'Product': {
247         'app_name': 'shopelectro',
248         'dir_name': 'products',
249     },
250     'Category': {
251         'app_name': 'shopelectro',
252         'dir_name': 'categories',
253     }
254 }
255 
256 # This need for using {% debug %} variable in templates.
257 INTERNAL_IPS = (
258     '127.0.0.1',
259 )
260 
261 TOP_PRODUCTS = [291, 438, 1137, 2166, 2725, 2838, 3288, 3884, 3959, 2764]
262 
263 SHOP = {
264     'id': '69886',
265     'scid': '64788',
266     'success_url': BASE_URL + '/shop/order-success/',
267     'fail_url': BASE_URL + '/',
268     'cps_phone': '+78124163200',
269     'cps_email': 'info@shopelectro.ru',
270     'local_delivery_cost': 300,
271     'local_delivery_cost_threshold': 3000,
272 }
273 
274 # used in data-migrations and tests
275 CUSTOM_PAGES = {
276     'index': {
277         'slug': '',
278         'name': 'Интернет-магазин элементов питания "ShopElectro"',
279         'menu_title': 'Главная',
280         'title': 'Интернет-магазин Элементов питания с доставкой по России',
281     },
282     'sitemap': {
283         'slug': 'sitemap',
284         'h1': 'Карта сайта',
285         'name': 'Карта сайта',
286     },
287     'order': {
288         'slug': 'order',
289         'name': 'Оформление заказа',
290         'title': 'Корзина Интернет-магазин shopelectro.ru Санкт-Петербург',
291     },
292     'search': {
293         'slug': 'search',
294         'name': 'Результаты поиска',
295     },
296     'catalog': {
297         'slug': 'catalog',
298         'name': 'Каталог товаров',
299         'menu_title': 'Каталог',
300     },
301     'order_success': {
302         'slug': 'order-success',
303         'name': 'Заказ принят',
304     }
305 }
306
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/shopelectro/settings/base.py b/shopelectro/settings/base.py
--- a/shopelectro/settings/base.py
+++ b/shopelectro/settings/base.py
@@ -268,7 +268,7 @@
     'cps_phone': '+78124163200',
     'cps_email': 'info@shopelectro.ru',
     'local_delivery_cost': 300,
-    'local_delivery_cost_threshold': 3000,
+    'local_delivery_cost_threshold': 5000,
 }
 
 # used in data-migrations and tests

{"golden_diff": "diff --git a/shopelectro/settings/base.py b/shopelectro/settings/base.py\n--- a/shopelectro/settings/base.py\n+++ b/shopelectro/settings/base.py\n@@ -268,7 +268,7 @@\n     'cps_phone': '+78124163200',\n     'cps_email': 'info@shopelectro.ru',\n     'local_delivery_cost': 300,\n-    'local_delivery_cost_threshold': 3000,\n+    'local_delivery_cost_threshold': 5000,\n }\n \n # used in data-migrations and tests\n", "issue": "SE yml fix delivery 3k -> 5k\n[origin trello task](https://trello.com/c/LyLVDakS/298-se-%D0%BF%D1%80%D0%B0%D0%B2%D1%8C-yml)\r\n\r\n\u0412\u043d\u0435\u0437\u0430\u043f\u043d\u043e \u043e\u0431\u043d\u043e\u0440\u0443\u0436\u0438\u043b\u0438, \u0447\u0442\u043e \u0447\u0435\u0440\u0435\u0437 \u0444\u0438\u0434 \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u0442\u0441\u044f( \u0432 \u0442\u0435\u0433\u0435 <sales_notes>) \u043d\u0435\u0432\u0435\u0440\u043d\u0430\u044f \u0438\u043d\u0444\u0430 \u043e \u0434\u043e\u0441\u0442\u0430\u0432\u043a\u0435.\r\n\u0418\u0441\u043f\u0440\u0430\u0432\u044c \u043d\u0430 5\u043a.\n", "before_files": [{"content": "\"\"\"\nDjango settings for shopelectro project.\n\nGenerated by 'django-admin startproject' using Django 1.9.5.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/1.9/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com/en/1.9/ref/settings/\n\"\"\"\n\nimport os\nfrom datetime import datetime\n\nimport dj_database_url\n\n# Build paths inside the project like this: os.path.join(BASE_DIR, ...)\nBASE_DIR = os.path.dirname(os.path.dirname(\n    os.path.dirname(os.path.abspath(__file__))))\n\n# Quick-start development settings - unsuitable for production\n# See https://docs.djangoproject.com/en/1.9/howto/deployment/checklist/\n\n# SECURITY WARNING: keep the secret key used in production secret!\nSECRET_KEY = os.environ.get('SECRET_KEY', 'so_secret_key')\n\n# SECURITY WARNING: don't run with debug turned on in production!\nDEBUG = True\n\n# http://bit.ly/sorl-thumbnail-docs\nTHUMBNAIL_DEBUG = False\n\nALLOWED_HOSTS = ['*']\n\nif os.environ.get('TEST_ENV', False):\n    # disable https in CI\n    # https://docs.djangoproject.com/en/1.9/ref/settings/#secure-proxy-ssl-header\n    SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'http')\n\n# Enable in frame loading for Ya.Metric\n# https://docs.djangoproject.com/es/1.10/ref/clickjacking/\n# https://yandex.ru/support/metrika/general/counter-webvisor.xml#download-page\nX_FRAME_OPTIONS = 'ALLOW-FROM http://webvisor.com'\n\n# Application definition\nINSTALLED_APPS = [\n    # https://docs.djangoproject.com/en/1.9/ref/contrib/admin/#django.contrib.admin.autodiscover\n    'django.contrib.contenttypes',\n    'django.contrib.auth',\n    'django.contrib.messages',\n    'django.contrib.redirects',\n    'django.contrib.sessions',\n    'django.contrib.sitemaps',\n    'django.contrib.sites',\n    'django.contrib.staticfiles',\n    'django.contrib.humanize',\n    'django_user_agents',\n    'generic_admin',\n    'django.contrib.admin.apps.SimpleAdminConfig',\n    'debug_toolbar',\n    'mptt',\n    'widget_tweaks',\n    'sorl.thumbnail',\n    'images',\n    'pages',\n    'catalog',\n    'ecommerce',\n    'shopelectro',\n]\n\nMIDDLEWARE = [\n    'django.middleware.security.SecurityMiddleware',\n    'django.contrib.sessions.middleware.SessionMiddleware',\n    'django.middleware.common.CommonMiddleware',\n    'django.middleware.csrf.CsrfViewMiddleware',\n    'django.contrib.auth.middleware.AuthenticationMiddleware',\n    'django.contrib.auth.middleware.SessionAuthenticationMiddleware',\n    'django.contrib.messages.middleware.MessageMiddleware',\n    'django.middleware.clickjacking.XFrameOptionsMiddleware',\n    'django.contrib.redirects.middleware.RedirectFallbackMiddleware',\n    'django.middleware.locale.LocaleMiddleware',\n    'django_user_agents.middleware.UserAgentMiddleware',\n    'debug_toolbar.middleware.DebugToolbarMiddleware',\n]\n\nROOT_URLCONF = 'shopelectro.urls'\n\nTEMPLATES = [\n    {\n        'BACKEND': 'django.template.backends.django.DjangoTemplates',\n        'DIRS': [os.path.join(BASE_DIR, 'templates')],\n        'APP_DIRS': True,\n        'OPTIONS': {\n            'context_processors': [\n                'django.template.context_processors.debug',\n                'django.template.context_processors.media',\n                'django.template.context_processors.request',\n                'django.template.context_processors.static',\n                'django.contrib.auth.context_processors.auth',\n                'django.contrib.messages.context_processors.messages',\n                'ecommerce.context_processors.cart',\n                'shopelectro.context_processors.shop',\n            ],\n        },\n    },\n]\n\nWSGI_APPLICATION = 'shopelectro.wsgi.application'\n\n# Password validation\n# https://docs.djangoproject.com/en/1.9/ref/settings/#auth-password-validators\n\nAUTH_PASSWORD_VALIDATORS = [\n    {\n        'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',\n    },\n    {\n        'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',\n    },\n    {\n        'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',\n    },\n    {\n        'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',\n    },\n]\n\n# Internationalization\n# https://docs.djangoproject.com/en/1.9/topics/i18n/\n\nLOCALE_NAME = 'en_US'\nTIME_ZONE = 'UTC'\n\nUSE_I18N = True\nUSE_L10N = True\nUSE_TZ = True\n\nLOCALE_PATHS = [os.path.join(BASE_DIR, 'shopelectro/locale')]\nFORMAT_MODULE_PATH = [\n    'shopelectro.formats',\n]\n\n# Static files (CSS, JavaScript, Images)\n# https://docs.djangoproject.com/en/1.9/howto/static-files/\nSTATIC_URL = '/static/'\nSTATIC_ROOT = os.path.join(BASE_DIR, 'static')\nASSETS_DIR = os.path.join(BASE_DIR, 'assets')\n\nSTATICFILES_STORAGE = 'django.contrib.staticfiles.storage.ManifestStaticFilesStorage'\n\nSTATICFILES_DIRS = [\n    os.path.join(BASE_DIR, 'front/build'),\n    ASSETS_DIR,\n]\n\nMEDIA_URL = '/media/'\nMEDIA_ROOT = os.path.join(BASE_DIR, 'media')\n\n# It is fake-url. Correct url will be created on `docker-compose up` stage from `docker/.env`\nDATABASE_URL = 'postgres://user:pass@db_name/table'\nDATABASES = {\n    'default': dj_database_url.config(\n        env='DATABASE_URL',\n        default=DATABASE_URL,\n    )\n}\n\nLOGGING = {\n    'version': 1,\n    'disable_existing_loggers': False,\n    'handlers': {\n        'console': {\n            'class': 'logging.StreamHandler',\n        },\n    },\n    'loggers': {\n        'django': {\n            'handlers': ['console'],\n            'level': os.getenv('DJANGO_LOG_LEVEL', 'INFO'),\n        },\n    },\n}\n\nSITE_CREATED = datetime(2013, 1, 1)\n\nLOCALHOST = 'http://127.0.0.1:8000/'\nBASE_URL = 'https://www.shopelectro.ru'\n\nPLACEHOLDER_IMAGE = 'images/logo.png'\nPLACEHOLDER_ALT = '\u041b\u043e\u0433\u043e\u0442\u0438\u043f \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 Shopelectro'\n\n# Autocomplete and search settings\nSEARCH_SEE_ALL_LABEL = '\u0421\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432\u0441\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b'\n\n# For sitemaps and sites framework\nSITE_ID = 1\nSITE_DOMAIN_NAME = 'www.shopelectro.ru'\n\n# Used to retrieve instances in ecommerce.Cart\nCART_ID = 'cart'\n\n# Used to define choices attr in definition of Order.payment_type field\nPAYMENT_OPTIONS = (\n    ('cash', '\u041d\u0430\u043b\u0438\u0447\u043d\u044b\u0435'),\n    ('cashless', '\u0411\u0435\u0437\u043d\u0430\u043b\u0438\u0447\u043d\u044b\u0435 \u0438 \u0434\u0435\u043d\u0435\u0436\u043d\u044b\u0435 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u044b'),\n    ('AC', '\u0411\u0430\u043d\u043a\u043e\u0432\u0441\u043a\u0430\u044f \u043a\u0430\u0440\u0442\u0430'),\n    ('PC', '\u042f\u043d\u0434\u0435\u043a\u0441.\u0414\u0435\u043d\u044c\u0433\u0438'),\n    ('GP', '\u0421\u0432\u044f\u0437\u043d\u043e\u0439 (\u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b)'),\n    ('AB', '\u0410\u043b\u044c\u0444\u0430-\u041a\u043b\u0438\u043a'),\n)\n\n# It is fake-pass. Correct pass will be created on `docker-compose up` stage from `docker/.env`\nYANDEX_SHOP_PASS = os.environ.get('YANDEX_SHOP_PASS', 'so_secret_pass')\n\n# Used for order's email in ecommerce app\nFAKE_ORDER_NUMBER = 6000\n\n# Subjects for different types of emails sent from SE.\nEMAIL_SUBJECTS = {\n    'call': '\u041e\u0431\u0440\u0430\u0442\u043d\u044b\u0439 \u0437\u0432\u043e\u043d\u043e\u043a',\n    'order': '\u0417\u0430\u043a\u0430\u0437 \u2116{0.fake_order_number}',\n    'yandex_order': '\u0417\u0430\u043a\u0430\u0437 \u2116{0.fake_order_number} | \u042f\u043d\u0434\u0435\u043a\u0441.\u041a\u0430\u0441\u0441\u0430',\n    'one_click': '\u0417\u0430\u043a\u0430\u0437 \u0432 \u043e\u0434\u0438\u043d \u043a\u043b\u0438\u043a \u2116{0.fake_order_number}',\n    'ya_feedback_request': '\u041e\u0446\u0435\u043d\u0438\u0442\u0435 \u043d\u0430\u0441 \u043d\u0430 \u042f\u043d\u0434\u0435\u043a\u0441.\u041c\u0430\u0440\u043a\u0435\u0442\u0435',\n}\n\n# Email configs\n# It is fake-pass. Correct pass will be created on `docker-compose up` stage from `docker/.env`\nEMAIL_HOST_PASSWORD = os.environ.get('EMAIL_HOST_PASSWORD', 'so_secret_pass')\nEMAIL_HOST_USER = 'info@shopelectro.ru'\nEMAIL_USE_TLS = True\nEMAIL_HOST = 'smtp.yandex.ru'\nEMAIL_PORT = 587\nEMAIL_SENDER = 'info@shopelectro.ru'\nEMAIL_RECIPIENT = 'info@shopelectro.ru'\nSHOP_EMAIL = 'info@shopelectro.ru'\n\n# FTP configs\nFTP_USER = os.environ.get('FTP_USER', 'user')\nFTP_PASS = os.environ.get('FTP_PASS', 'pass')\nFTP_IP = os.environ.get('FTP_IP', '0.0.0.0')\n\n# Used in admin image uploads\nMODEL_TYPES = {\n    'Product': {\n        'app_name': 'shopelectro',\n        'dir_name': 'products',\n    },\n    'Category': {\n        'app_name': 'shopelectro',\n        'dir_name': 'categories',\n    }\n}\n\n# This need for using {% debug %} variable in templates.\nINTERNAL_IPS = (\n    '127.0.0.1',\n)\n\nTOP_PRODUCTS = [291, 438, 1137, 2166, 2725, 2838, 3288, 3884, 3959, 2764]\n\nSHOP = {\n    'id': '69886',\n    'scid': '64788',\n    'success_url': BASE_URL + '/shop/order-success/',\n    'fail_url': BASE_URL + '/',\n    'cps_phone': '+78124163200',\n    'cps_email': 'info@shopelectro.ru',\n    'local_delivery_cost': 300,\n    'local_delivery_cost_threshold': 3000,\n}\n\n# used in data-migrations and tests\nCUSTOM_PAGES = {\n    'index': {\n        'slug': '',\n        'name': '\u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u043c\u0430\u0433\u0430\u0437\u0438\u043d \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u043f\u0438\u0442\u0430\u043d\u0438\u044f \"ShopElectro\"',\n        'menu_title': '\u0413\u043b\u0430\u0432\u043d\u0430\u044f',\n        'title': '\u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u043c\u0430\u0433\u0430\u0437\u0438\u043d \u042d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u043f\u0438\u0442\u0430\u043d\u0438\u044f \u0441 \u0434\u043e\u0441\u0442\u0430\u0432\u043a\u043e\u0439 \u043f\u043e \u0420\u043e\u0441\u0441\u0438\u0438',\n    },\n    'sitemap': {\n        'slug': 'sitemap',\n        'h1': '\u041a\u0430\u0440\u0442\u0430 \u0441\u0430\u0439\u0442\u0430',\n        'name': '\u041a\u0430\u0440\u0442\u0430 \u0441\u0430\u0439\u0442\u0430',\n    },\n    'order': {\n        'slug': 'order',\n        'name': '\u041e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u0438\u0435 \u0437\u0430\u043a\u0430\u0437\u0430',\n        'title': '\u041a\u043e\u0440\u0437\u0438\u043d\u0430 \u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u043c\u0430\u0433\u0430\u0437\u0438\u043d shopelectro.ru \u0421\u0430\u043d\u043a\u0442-\u041f\u0435\u0442\u0435\u0440\u0431\u0443\u0440\u0433',\n    },\n    'search': {\n        'slug': 'search',\n        'name': '\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u043f\u043e\u0438\u0441\u043a\u0430',\n    },\n    'catalog': {\n        'slug': 'catalog',\n        'name': '\u041a\u0430\u0442\u0430\u043b\u043e\u0433 \u0442\u043e\u0432\u0430\u0440\u043e\u0432',\n        'menu_title': '\u041a\u0430\u0442\u0430\u043b\u043e\u0433',\n    },\n    'order_success': {\n        'slug': 'order-success',\n        'name': '\u0417\u0430\u043a\u0430\u0437 \u043f\u0440\u0438\u043d\u044f\u0442',\n    }\n}\n", "path": "shopelectro/settings/base.py"}], "after_files": [{"content": "\"\"\"\nDjango settings for shopelectro project.\n\nGenerated by 'django-admin startproject' using Django 1.9.5.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/1.9/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com/en/1.9/ref/settings/\n\"\"\"\n\nimport os\nfrom datetime import datetime\n\nimport dj_database_url\n\n# Build paths inside the project like this: os.path.join(BASE_DIR, ...)\nBASE_DIR = os.path.dirname(os.path.dirname(\n    os.path.dirname(os.path.abspath(__file__))))\n\n# Quick-start development settings - unsuitable for production\n# See https://docs.djangoproject.com/en/1.9/howto/deployment/checklist/\n\n# SECURITY WARNING: keep the secret key used in production secret!\nSECRET_KEY = os.environ.get('SECRET_KEY', 'so_secret_key')\n\n# SECURITY WARNING: don't run with debug turned on in production!\nDEBUG = True\n\n# http://bit.ly/sorl-thumbnail-docs\nTHUMBNAIL_DEBUG = False\n\nALLOWED_HOSTS = ['*']\n\nif os.environ.get('TEST_ENV', False):\n    # disable https in CI\n    # https://docs.djangoproject.com/en/1.9/ref/settings/#secure-proxy-ssl-header\n    SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'http')\n\n# Enable in frame loading for Ya.Metric\n# https://docs.djangoproject.com/es/1.10/ref/clickjacking/\n# https://yandex.ru/support/metrika/general/counter-webvisor.xml#download-page\nX_FRAME_OPTIONS = 'ALLOW-FROM http://webvisor.com'\n\n# Application definition\nINSTALLED_APPS = [\n    # https://docs.djangoproject.com/en/1.9/ref/contrib/admin/#django.contrib.admin.autodiscover\n    'django.contrib.contenttypes',\n    'django.contrib.auth',\n    'django.contrib.messages',\n    'django.contrib.redirects',\n    'django.contrib.sessions',\n    'django.contrib.sitemaps',\n    'django.contrib.sites',\n    'django.contrib.staticfiles',\n    'django.contrib.humanize',\n    'django_user_agents',\n    'generic_admin',\n    'django.contrib.admin.apps.SimpleAdminConfig',\n    'debug_toolbar',\n    'mptt',\n    'widget_tweaks',\n    'sorl.thumbnail',\n    'images',\n    'pages',\n    'catalog',\n    'ecommerce',\n    'shopelectro',\n]\n\nMIDDLEWARE = [\n    'django.middleware.security.SecurityMiddleware',\n    'django.contrib.sessions.middleware.SessionMiddleware',\n    'django.middleware.common.CommonMiddleware',\n    'django.middleware.csrf.CsrfViewMiddleware',\n    'django.contrib.auth.middleware.AuthenticationMiddleware',\n    'django.contrib.auth.middleware.SessionAuthenticationMiddleware',\n    'django.contrib.messages.middleware.MessageMiddleware',\n    'django.middleware.clickjacking.XFrameOptionsMiddleware',\n    'django.contrib.redirects.middleware.RedirectFallbackMiddleware',\n    'django.middleware.locale.LocaleMiddleware',\n    'django_user_agents.middleware.UserAgentMiddleware',\n    'debug_toolbar.middleware.DebugToolbarMiddleware',\n]\n\nROOT_URLCONF = 'shopelectro.urls'\n\nTEMPLATES = [\n    {\n        'BACKEND': 'django.template.backends.django.DjangoTemplates',\n        'DIRS': [os.path.join(BASE_DIR, 'templates')],\n        'APP_DIRS': True,\n        'OPTIONS': {\n            'context_processors': [\n                'django.template.context_processors.debug',\n                'django.template.context_processors.media',\n                'django.template.context_processors.request',\n                'django.template.context_processors.static',\n                'django.contrib.auth.context_processors.auth',\n                'django.contrib.messages.context_processors.messages',\n                'ecommerce.context_processors.cart',\n                'shopelectro.context_processors.shop',\n            ],\n        },\n    },\n]\n\nWSGI_APPLICATION = 'shopelectro.wsgi.application'\n\n# Password validation\n# https://docs.djangoproject.com/en/1.9/ref/settings/#auth-password-validators\n\nAUTH_PASSWORD_VALIDATORS = [\n    {\n        'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',\n    },\n    {\n        'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',\n    },\n    {\n        'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',\n    },\n    {\n        'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',\n    },\n]\n\n# Internationalization\n# https://docs.djangoproject.com/en/1.9/topics/i18n/\n\nLOCALE_NAME = 'en_US'\nTIME_ZONE = 'UTC'\n\nUSE_I18N = True\nUSE_L10N = True\nUSE_TZ = True\n\nLOCALE_PATHS = [os.path.join(BASE_DIR, 'shopelectro/locale')]\nFORMAT_MODULE_PATH = [\n    'shopelectro.formats',\n]\n\n# Static files (CSS, JavaScript, Images)\n# https://docs.djangoproject.com/en/1.9/howto/static-files/\nSTATIC_URL = '/static/'\nSTATIC_ROOT = os.path.join(BASE_DIR, 'static')\nASSETS_DIR = os.path.join(BASE_DIR, 'assets')\n\nSTATICFILES_STORAGE = 'django.contrib.staticfiles.storage.ManifestStaticFilesStorage'\n\nSTATICFILES_DIRS = [\n    os.path.join(BASE_DIR, 'front/build'),\n    ASSETS_DIR,\n]\n\nMEDIA_URL = '/media/'\nMEDIA_ROOT = os.path.join(BASE_DIR, 'media')\n\n# It is fake-url. Correct url will be created on `docker-compose up` stage from `docker/.env`\nDATABASE_URL = 'postgres://user:pass@db_name/table'\nDATABASES = {\n    'default': dj_database_url.config(\n        env='DATABASE_URL',\n        default=DATABASE_URL,\n    )\n}\n\nLOGGING = {\n    'version': 1,\n    'disable_existing_loggers': False,\n    'handlers': {\n        'console': {\n            'class': 'logging.StreamHandler',\n        },\n    },\n    'loggers': {\n        'django': {\n            'handlers': ['console'],\n            'level': os.getenv('DJANGO_LOG_LEVEL', 'INFO'),\n        },\n    },\n}\n\nSITE_CREATED = datetime(2013, 1, 1)\n\nLOCALHOST = 'http://127.0.0.1:8000/'\nBASE_URL = 'https://www.shopelectro.ru'\n\nPLACEHOLDER_IMAGE = 'images/logo.png'\nPLACEHOLDER_ALT = '\u041b\u043e\u0433\u043e\u0442\u0438\u043f \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 Shopelectro'\n\n# Autocomplete and search settings\nSEARCH_SEE_ALL_LABEL = '\u0421\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432\u0441\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b'\n\n# For sitemaps and sites framework\nSITE_ID = 1\nSITE_DOMAIN_NAME = 'www.shopelectro.ru'\n\n# Used to retrieve instances in ecommerce.Cart\nCART_ID = 'cart'\n\n# Used to define choices attr in definition of Order.payment_type field\nPAYMENT_OPTIONS = (\n    ('cash', '\u041d\u0430\u043b\u0438\u0447\u043d\u044b\u0435'),\n    ('cashless', '\u0411\u0435\u0437\u043d\u0430\u043b\u0438\u0447\u043d\u044b\u0435 \u0438 \u0434\u0435\u043d\u0435\u0436\u043d\u044b\u0435 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u044b'),\n    ('AC', '\u0411\u0430\u043d\u043a\u043e\u0432\u0441\u043a\u0430\u044f \u043a\u0430\u0440\u0442\u0430'),\n    ('PC', '\u042f\u043d\u0434\u0435\u043a\u0441.\u0414\u0435\u043d\u044c\u0433\u0438'),\n    ('GP', '\u0421\u0432\u044f\u0437\u043d\u043e\u0439 (\u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b)'),\n    ('AB', '\u0410\u043b\u044c\u0444\u0430-\u041a\u043b\u0438\u043a'),\n)\n\n# It is fake-pass. Correct pass will be created on `docker-compose up` stage from `docker/.env`\nYANDEX_SHOP_PASS = os.environ.get('YANDEX_SHOP_PASS', 'so_secret_pass')\n\n# Used for order's email in ecommerce app\nFAKE_ORDER_NUMBER = 6000\n\n# Subjects for different types of emails sent from SE.\nEMAIL_SUBJECTS = {\n    'call': '\u041e\u0431\u0440\u0430\u0442\u043d\u044b\u0439 \u0437\u0432\u043e\u043d\u043e\u043a',\n    'order': '\u0417\u0430\u043a\u0430\u0437 \u2116{0.fake_order_number}',\n    'yandex_order': '\u0417\u0430\u043a\u0430\u0437 \u2116{0.fake_order_number} | \u042f\u043d\u0434\u0435\u043a\u0441.\u041a\u0430\u0441\u0441\u0430',\n    'one_click': '\u0417\u0430\u043a\u0430\u0437 \u0432 \u043e\u0434\u0438\u043d \u043a\u043b\u0438\u043a \u2116{0.fake_order_number}',\n    'ya_feedback_request': '\u041e\u0446\u0435\u043d\u0438\u0442\u0435 \u043d\u0430\u0441 \u043d\u0430 \u042f\u043d\u0434\u0435\u043a\u0441.\u041c\u0430\u0440\u043a\u0435\u0442\u0435',\n}\n\n# Email configs\n# It is fake-pass. Correct pass will be created on `docker-compose up` stage from `docker/.env`\nEMAIL_HOST_PASSWORD = os.environ.get('EMAIL_HOST_PASSWORD', 'so_secret_pass')\nEMAIL_HOST_USER = 'info@shopelectro.ru'\nEMAIL_USE_TLS = True\nEMAIL_HOST = 'smtp.yandex.ru'\nEMAIL_PORT = 587\nEMAIL_SENDER = 'info@shopelectro.ru'\nEMAIL_RECIPIENT = 'info@shopelectro.ru'\nSHOP_EMAIL = 'info@shopelectro.ru'\n\n# FTP configs\nFTP_USER = os.environ.get('FTP_USER', 'user')\nFTP_PASS = os.environ.get('FTP_PASS', 'pass')\nFTP_IP = os.environ.get('FTP_IP', '0.0.0.0')\n\n# Used in admin image uploads\nMODEL_TYPES = {\n    'Product': {\n        'app_name': 'shopelectro',\n        'dir_name': 'products',\n    },\n    'Category': {\n        'app_name': 'shopelectro',\n        'dir_name': 'categories',\n    }\n}\n\n# This need for using {% debug %} variable in templates.\nINTERNAL_IPS = (\n    '127.0.0.1',\n)\n\nTOP_PRODUCTS = [291, 438, 1137, 2166, 2725, 2838, 3288, 3884, 3959, 2764]\n\nSHOP = {\n    'id': '69886',\n    'scid': '64788',\n    'success_url': BASE_URL + '/shop/order-success/',\n    'fail_url': BASE_URL + '/',\n    'cps_phone': '+78124163200',\n    'cps_email': 'info@shopelectro.ru',\n    'local_delivery_cost': 300,\n    'local_delivery_cost_threshold': 5000,\n}\n\n# used in data-migrations and tests\nCUSTOM_PAGES = {\n    'index': {\n        'slug': '',\n        'name': '\u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u043c\u0430\u0433\u0430\u0437\u0438\u043d \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u043f\u0438\u0442\u0430\u043d\u0438\u044f \"ShopElectro\"',\n        'menu_title': '\u0413\u043b\u0430\u0432\u043d\u0430\u044f',\n        'title': '\u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u043c\u0430\u0433\u0430\u0437\u0438\u043d \u042d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u043f\u0438\u0442\u0430\u043d\u0438\u044f \u0441 \u0434\u043e\u0441\u0442\u0430\u0432\u043a\u043e\u0439 \u043f\u043e \u0420\u043e\u0441\u0441\u0438\u0438',\n    },\n    'sitemap': {\n        'slug': 'sitemap',\n        'h1': '\u041a\u0430\u0440\u0442\u0430 \u0441\u0430\u0439\u0442\u0430',\n        'name': '\u041a\u0430\u0440\u0442\u0430 \u0441\u0430\u0439\u0442\u0430',\n    },\n    'order': {\n        'slug': 'order',\n        'name': '\u041e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u0438\u0435 \u0437\u0430\u043a\u0430\u0437\u0430',\n        'title': '\u041a\u043e\u0440\u0437\u0438\u043d\u0430 \u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u043c\u0430\u0433\u0430\u0437\u0438\u043d shopelectro.ru \u0421\u0430\u043d\u043a\u0442-\u041f\u0435\u0442\u0435\u0440\u0431\u0443\u0440\u0433',\n    },\n    'search': {\n        'slug': 'search',\n        'name': '\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u043f\u043e\u0438\u0441\u043a\u0430',\n    },\n    'catalog': {\n        'slug': 'catalog',\n        'name': '\u041a\u0430\u0442\u0430\u043b\u043e\u0433 \u0442\u043e\u0432\u0430\u0440\u043e\u0432',\n        'menu_title': '\u041a\u0430\u0442\u0430\u043b\u043e\u0433',\n    },\n    'order_success': {\n        'slug': 'order-success',\n        'name': '\u0417\u0430\u043a\u0430\u0437 \u043f\u0440\u0438\u043d\u044f\u0442',\n    }\n}\n", "path": "shopelectro/settings/base.py"}]}