· 4 years ago · Jul 14, 2021, 01:40 PM
1ValueError at /product/65/activate/
2empty range for randrange() (20, 3, -17)
3
4Request Method: POST
5Request URL: https://garant-order.com/product/65/activate/
6Django Version: 2.1
7Python Executable: /home/garant/garant/garant/server/.venv/bin/python3.8
8Python Version: 3.8.0
9Python Path: ['/home/garant/garant/garant/server', '/home/garant/garant/garant/server', '/home/garant/garant/garant/server', '/home/garant/garant/garant/server/.venv/bin', '/home/garant/garant/garant/server/.venv/lib/python38.zip', '/home/garant/garant/garant/server/.venv/lib/python3.8', '/home/garant/garant/garant/server/.venv/lib/python3.8/lib-dynload', '/usr/lib/python3.8', '/home/garant/garant/garant/server/.venv/lib/python3.8/site-packages']
10Server time: Ср, 14 Июл 2021 13:32:46 +0000
11Installed Applications:
12['markup',
13 'apps.authentication',
14 'apps.products',
15 'apps.auction',
16 'apps.booking',
17 'apps.payment',
18 'apps.pages',
19 'apps.menus',
20 'rosetta',
21 'seo',
22 'django_jinja',
23 'robots',
24 'des',
25 'parler',
26 'ckeditor',
27 'postie',
28 'constance',
29 'django_filters',
30 'vuejs_translate',
31 'adminsortable2',
32 'solo',
33 'colorfield',
34 'django_mptt_admin',
35 'jet',
36 'jet.dashboard',
37 'allauth',
38 'allauth.account',
39 'allauth.socialaccount',
40 'allauth.socialaccount.providers.vk',
41 'allauth.socialaccount.providers.instagram',
42 'allauth.socialaccount.providers.google',
43 'allauth.socialaccount.providers.facebook',
44 'django_otp',
45 'django_otp.plugins.otp_totp',
46 'corsheaders',
47 'instant',
48 'apps.staff',
49 'rest_framework',
50 'rest_framework.authtoken',
51 'rest_auth.registration',
52 'script_pattern',
53 'apps.staff.apps.MyAdminConfig',
54 'django.contrib.auth',
55 'django.contrib.contenttypes',
56 'django.contrib.sessions',
57 'django.contrib.messages',
58 'django.contrib.staticfiles',
59 'django.contrib.sites',
60 'django.contrib.redirects']
61Installed Middleware:
62['corsheaders.middleware.CorsMiddleware',
63 'django.middleware.security.SecurityMiddleware',
64 'django.contrib.sessions.middleware.SessionMiddleware',
65 'django.middleware.common.CommonMiddleware',
66 'django.middleware.csrf.CsrfViewMiddleware',
67 'django.contrib.auth.middleware.AuthenticationMiddleware',
68 'django_otp.middleware.OTPMiddleware',
69 'django.contrib.messages.middleware.MessageMiddleware',
70 'django.middleware.clickjacking.XFrameOptionsMiddleware',
71 'apps.pages.middleware.RedirectMiddleware',
72 'apps.authentication.middleware.TransitionLogMiddleware',
73 'seo.middleware.url_seo_middleware']
74
75
76Traceback:
77
78File "/home/garant/garant/garant/server/.venv/lib/python3.8/site-packages/django/core/handlers/exception.py" in inner
79 34. response = get_response(request)
80
81File "/home/garant/garant/garant/server/.venv/lib/python3.8/site-packages/django/core/handlers/base.py" in _get_response
82 126. response = self.process_exception_by_middleware(e, request)
83
84File "/home/garant/garant/garant/server/.venv/lib/python3.8/site-packages/django/core/handlers/base.py" in _get_response
85 124. response = wrapped_callback(request, *callback_args, **callback_kwargs)
86
87File "/home/garant/garant/garant/server/.venv/lib/python3.8/site-packages/django/views/generic/base.py" in view
88 68. return self.dispatch(request, *args, **kwargs)
89
90File "/home/garant/garant/garant/server/.venv/lib/python3.8/site-packages/django/utils/decorators.py" in _wrapper
91 45. return bound_method(*args, **kwargs)
92
93File "/home/garant/garant/garant/server/.venv/lib/python3.8/site-packages/django/views/decorators/csrf.py" in wrapped_view
94 54. return view_func(*args, **kwargs)
95
96File "/home/garant/garant/garant/server/.venv/lib/python3.8/site-packages/django/views/generic/base.py" in dispatch
97 88. return handler(request, *args, **kwargs)
98
99File "/home/garant/garant/garant/server/apps/products/admin/views.py" in post
100 56. start_product_auction(self.object)
101
102File "/home/garant/garant/garant/server/apps/auction/contrib/usecases.py" in start_product_auction
103 36. start_auction(auction)
104
105File "/home/garant/garant/garant/server/apps/auction/contrib/usecases.py" in start_auction
106 41. _reload_auction_process(auction)
107
108File "/home/garant/garant/garant/server/apps/auction/contrib/usecases.py" in _reload_auction_process
109 26. Bot(auction).appoint_bot()
110
111File "/home/garant/garant/garant/server/apps/auction/contrib/bot.py" in appoint_bot
112 60. self._appoint_bot()
113
114File "/home/garant/garant/garant/server/apps/auction/contrib/bot.py" in _appoint_bot
115 34. random_timestamp = random.randrange(
116
117File "/home/garant/garant/garant/server/.venv/lib/python3.8/random.py" in randrange
118 226. raise ValueError("empty range for randrange() (%d, %d, %d)" % (istart, istop, width))
119
120Exception Type: ValueError at /product/65/activate/
121Exception Value: empty range for randrange() (20, 3, -17)
122Request information:
123USER: admin
124
125GET: No GET data
126
127POST: No POST data
128
129FILES: No FILES data
130
131COOKIES:
132csrftoken = 'hygQ4GJhVbdBDpdzvmeQ41Lsfbd7thWb85dlvBpAipzusgwd1wYwAciK2fC93U1L'
133sessionid = 'k55xpgsqd7ibfqhe1b4cy4ny4orip0wa'
134
135META:
136CONTENT_LENGTH = '0'
137CSRF_COOKIE = 'hygQ4GJhVbdBDpdzvmeQ41Lsfbd7thWb85dlvBpAipzusgwd1wYwAciK2fC93U1L'
138HTTP_ACCEPT = '*/*'
139HTTP_ACCEPT_ENCODING = 'gzip, deflate, br'
140HTTP_ACCEPT_LANGUAGE = 'ru'
141HTTP_CONNECTION = 'close'
142HTTP_COOKIE = 'csrftoken=hygQ4GJhVbdBDpdzvmeQ41Lsfbd7thWb85dlvBpAipzusgwd1wYwAciK2fC93U1L; sessionid=k55xpgsqd7ibfqhe1b4cy4ny4orip0wa'
143HTTP_HOST = 'garant-order.com'
144HTTP_ORIGIN = 'https://garant-order.com'
145HTTP_REFERER = 'https://garant-order.com/admin/products/product/65/change/'
146HTTP_SEC_CH_UA = '" Not;A Brand";v="99", "Google Chrome";v="91", "Chromium";v="91"'
147HTTP_SEC_CH_UA_MOBILE = '?0'
148HTTP_SEC_FETCH_DEST = 'empty'
149HTTP_SEC_FETCH_MODE = 'cors'
150HTTP_SEC_FETCH_SITE = 'same-origin'
151HTTP_USER_AGENT = 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36'
152HTTP_X_FORWARDED_FOR = '185.248.128.230'
153HTTP_X_FORWARDED_PROTO = 'https'
154HTTP_X_REQUESTED_WITH = 'XMLHttpRequest'
155PATH_INFO = '/product/65/activate/'
156QUERY_STRING = ''
157RAW_URI = '/product/65/activate/'
158REMOTE_ADDR = ''
159REQUEST_METHOD = 'POST'
160SCRIPT_NAME = ''
161SERVER_NAME = 'garant-order.com'
162SERVER_PORT = '443'
163SERVER_PROTOCOL = 'HTTP/1.0'
164SERVER_SOFTWARE = 'gunicorn/20.0.4'
165gunicorn.socket = <gevent._socket3.socket at 0x7f7a20c2b6a0 object, fd=19, family=1, type=1, proto=0>
166wsgi.errors = <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7f7a20991250>
167wsgi.file_wrapper = ''
168wsgi.input = <gunicorn.http.body.Body object at 0x7f7a20991370>
169wsgi.input_terminated = True
170wsgi.multiprocess = True
171wsgi.multithread = True
172wsgi.run_once = False
173wsgi.url_scheme = 'https'
174wsgi.version = '(1, 0)'
175
176Settings:
177Using settings module app.settings
178ABSOLUTE_URL_OVERRIDES = {}
179ACCOUNT_AUTHENTICATION_METHOD = 'username_email'
180ACCOUNT_EMAIL_VERIFICATION = 'none'
181ADMINS = []
182ALLOWED_HOSTS = ['167.172.170.22', 'garant-order.com']
183APPEND_SLASH = True
184ASGI_APPLICATION = 'app.routing.application'
185AUTHENTICATION_BACKENDS = "('apps.authentication.backends.ModelBackend', 'apps.authentication.backends.AuthenticationBackend')"
186AUTH_PASSWORD_VALIDATORS = '********************'
187AUTH_USER_MODEL = 'staff.User'
188BASE_DIR = PosixPath('/home/garant/garant/garant/server/app/settings/django.py')
189BASE_ROOT = PosixPath('/home/garant/garant/garant/server/app')
190CACHES = {'default': {'BACKEND': 'django_redis.cache.RedisCache', 'LOCATION': 'redis://127.0.0.1:6379/1'}}
191CACHE_MIDDLEWARE_ALIAS = 'default'
192CACHE_MIDDLEWARE_KEY_PREFIX = '********************'
193CACHE_MIDDLEWARE_SECONDS = 600
194CELERY_ACCEPT_CONTENT = ['application/json']
195CELERY_BROKER_TRANSPORT_OPTIONS = {'socket_timeout': 10, 'fanout_prefix': True, 'fanout_patterns': True}
196CELERY_BROKER_URL = 'redis://localhost:6379/1'
197CELERY_RESULT_BACKEND = 'redis://localhost:6379/0'
198CELERY_RESULT_SERIALIZER = 'json'
199CELERY_TASK_SERIALIZER = 'json'
200CENTRIFUGO_HOST = 'https://garant-order.com/centrifugo/'
201CENTRIFUGO_PORT = '80'
202CENTRIFUGO_PROXY = True
203CENTRIFUGO_SECRET_KEY = '********************'
204CENTRIFUGO_URL = 'https://garant-order.com/centrifugo/connection/'
205CHANNEL_LAYERS = {'default': {'BACKEND': 'channels_redis.core.RedisChannelLayer', 'CONFIG': {'hosts': [('localhost', 6379)], 'capacity': 1000}}}
206CKEDITOR_CONFIGS = {'default': {'toolbar': 'Custom', 'toolbar_Custom': [{'name': 'styles', 'items': ['Styles', 'Format', 'Font', 'FontSize']}, {'name': 'colors', 'items': ['TextColor', 'BGColor']}, {'name': 'document', 'items': ['Save', 'NewPage', 'Preview', 'Print', 'Templates', '-', 'Source']}, {'name': 'basicstyles', 'items': ['Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'RemoveFormat']}, {'name': 'insert', 'items': ['Image', 'Flash', 'Table', 'HorizontalRule', 'Smiley', 'SpecialChar', 'PageBreak', 'Iframe']}, {'name': 'paragraph', 'items': ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Blockquote', 'CreateDiv', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock', '-', 'BidiLtr', 'BidiRtl', 'Language']}]}}
207CONSTANCE_ADDITIONAL_FIELDS = {'integer_field': [<class 'django.forms.fields.IntegerField'>, {}], 'file_field': [<class 'django.forms.fields.FileField'>, {}], 'char_field': [<class 'django.forms.fields.CharField'>, {}], 'image_field': [<class 'django.forms.fields.ImageField'>, {'required': False}], 'datetime_field': [<class 'django.forms.fields.DateTimeField'>, {}], 'wyswyg_field': [<class 'ckeditor.fields.RichTextFormField'>, {}]}
208CONSTANCE_CONFIG = {'LOGO': ('-', 'Логотип сайта', 'file_field'), 'MOB_LOGO': ('-', 'Мобильный логотип сайта', 'file_field'), 'ANSWERS': ('/', 'Путь на страницу ответов на вопросов(FAQ)', <class 'str'>), 'REVIEWS': ('/', 'Путь на страницу отзывов', <class 'str'>), 'AUCTION_TIMESTAMP': (30, 'Длительность отсчёта аукциона в секундах', <class 'int'>), 'AUCTION_IN_PENDING_TIMESTAMP': (600, 'Время аукциона в статусе "Завершен" в секундах', <class 'int'>), 'CURRENCY_TO_POINT': (10, 'Количество рублей за ед. поинтов (при пополнении)', <class 'int'>), 'POINT_TO_CURRENCY': (0.1, 'Количество поинтов и увел. цены товара в руб (на аукционе)', <class 'float'>), 'CART_LIFE_TIMESTAMP': (86400, 'ВРЕМЯ НА ОПЛАТУ ТОВАРА В КОРЗИНЕ', <class 'int'>), 'SALE_LIFE_TIMESTAMP': (86400, 'Время доступности "Быстрой покупки" по окончанию аукциона (в секундах)', <class 'int'>), 'ALIKASSA_SECRET': '********************', 'ALIKASSA_MERCHANT_ID': ('a491dc3e-ffd3-4311-b24e-40561aa8e6d5', 'Идентификатор продавца в Аликассе', <class 'str'>), 'TINYPNG_KEY': '********************', 'GENERAL_RULES': ('', 'Основные правила на странице описания товара', 'wyswyg_field'), 'CONTACTS': ('', 'Контакты', 'wyswyg_field'), 'ADMIN_EMAIL': ('admin@mail.com', 'Email админа', <class 'str'>), 'RULE_1': ('/', 'Ссылка на страницу правил 1', <class 'str'>), 'RULE_2': ('/', 'Ссылка на страницу правил 2', <class 'str'>), 'YOUTUBE_LINK': ('/', 'Ссылка на Youtube на странице кабинет', <class 'str'>), 'DELIVERY': ('/', 'Поп-ап доставки', 'wyswyg_field'), 'CERTIFICATE_REQUESTS_AMOUNT': (1, 'Макс. кол-во заявок на обналичивание сертификата единовременно', <class 'int'>), 'DELETED_ORDER_TIMESTAMP': (24, 'Время, в течение которого можно вернуть товар из удаленных (в часах)', <class 'int'>), 'DISABLE_REGISTRATION': (False, 'Выключить регистрацию', <class 'bool'>), 'DISABLE_AUTH': (False, 'Disable authentication', <class 'bool'>), 'DISABLE_REGISTRATION_MESSAGE': ('', 'Сообщение для юзера об отключении регистрации', 'wyswyg_field'), 'DISABLE_AUTH_MESSAGE': ('', 'Disable authentication message', 'wyswyg_field'), 'REFERRAL_PERCENT': (50, 'Процент прибыли от рефералов', <class 'int'>), 'REFERRAL_MIN_WITHDRAWN': (1000.0, 'Минимальная сумма для вывода', <class 'float'>), 'ADVERTISER_HELP_TEXT': ('', 'Текст-подсказка', 'wyswyg_field'), 'ADVERTISER_NOTIFICATION': ('', 'Уведомнение партнера', 'wyswyg_field'), 'NOT_FOUND_TEXT': ('', 'Text on 404 page', 'wyswyg_field'), 'PARTNER_POPUP_ERROR_MESSAGE': ('', 'Error message for partner in pop-up', 'wyswyg_field')}
209CONSTANCE_CONFIG_FIELDSETS = {'General': ('LOGO', 'MOB_LOGO', 'ANSWERS', 'REVIEWS', 'AUCTION_TIMESTAMP', 'AUCTION_IN_PENDING_TIMESTAMP', 'CURRENCY_TO_POINT', 'POINT_TO_CURRENCY', 'CART_LIFE_TIMESTAMP', 'SALE_LIFE_TIMESTAMP', 'ALIKASSA_SECRET', 'ALIKASSA_MERCHANT_ID', 'TINYPNG_KEY', 'GENERAL_RULES', 'CONTACTS', 'ADMIN_EMAIL', 'RULE_1', 'RULE_2', 'YOUTUBE_LINK', 'DELIVERY', 'CERTIFICATE_REQUESTS_AMOUNT', 'DELETED_ORDER_TIMESTAMP', 'DISABLE_REGISTRATION', 'DISABLE_AUTH', 'DISABLE_REGISTRATION_MESSAGE', 'DISABLE_AUTH_MESSAGE', 'REFERRAL_PERCENT', 'REFERRAL_MIN_WITHDRAWN', 'ADVERTISER_HELP_TEXT', 'ADVERTISER_NOTIFICATION', 'NOT_FOUND_TEXT', 'PARTNER_POPUP_ERROR_MESSAGE')}
210CONSTANCE_DATABASE_CACHE_AUTOFILL_TIMEOUT = None
211CONSTANCE_REDIS_CONNECTION_CLASS = 'django_redis.get_redis_connection'
212CORS_ORIGIN_WHITELIST = "('http://localhost:8001', 'http://127.0.0.1:8535', 'http://localhost:8535')"
213CSRF_COOKIE_AGE = 31449600
214CSRF_COOKIE_DOMAIN = None
215CSRF_COOKIE_HTTPONLY = False
216CSRF_COOKIE_NAME = 'csrftoken'
217CSRF_COOKIE_PATH = '/'
218CSRF_COOKIE_SAMESITE = 'Lax'
219CSRF_COOKIE_SECURE = False
220CSRF_FAILURE_VIEW = 'django.views.csrf.csrf_failure'
221CSRF_HEADER_NAME = 'HTTP_X_CSRFTOKEN'
222CSRF_TRUSTED_ORIGINS = []
223CSRF_USE_SESSIONS = False
224DATABASES = {'default': {'NAME': 'garant_db', 'USER': 'garant_db', 'PASSWORD': '********************', 'HOST': '127.0.0.1', 'PORT': 5432, 'ENGINE': 'django.db.backends.postgresql', 'CONN_MAX_AGE': 0, 'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'OPTIONS': {}, 'TIME_ZONE': None, 'TEST': {'CHARSET': None, 'COLLATION': None, 'NAME': None, 'MIRROR': None}}}
225DATABASE_ROUTERS = []
226DATA_UPLOAD_MAX_MEMORY_SIZE = 2621440
227DATA_UPLOAD_MAX_NUMBER_FIELDS = 1000
228DATETIME_FORMAT = 'N j, Y, P'
229DATETIME_INPUT_FORMATS = ['%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M:%S.%f', '%Y-%m-%d %H:%M', '%Y-%m-%d', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M:%S.%f', '%m/%d/%Y %H:%M', '%m/%d/%Y', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M:%S.%f', '%m/%d/%y %H:%M', '%m/%d/%y']
230DATE_FORMAT = 'N j, Y'
231DATE_INPUT_FORMATS = ['%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', '%b %d %Y', '%b %d, %Y', '%d %b %Y', '%d %b, %Y', '%B %d %Y', '%B %d, %Y', '%d %B %Y', '%d %B, %Y']
232DEBUG = True
233DEBUG_PROPAGATE_EXCEPTIONS = False
234DECIMAL_SEPARATOR = '.'
235DEFAULT_CHARSET = 'utf-8'
236DEFAULT_CONTENT_TYPE = 'text/html'
237DEFAULT_EXCEPTION_REPORTER_FILTER = 'django.views.debug.SafeExceptionReporterFilter'
238DEFAULT_EXTENSIONS = ['jinja2.ext.do', 'jinja2.ext.loopcontrols', 'jinja2.ext.with_', 'jinja2.ext.i18n', 'jinja2.ext.autoescape', 'django_jinja.builtins.extensions.DebugExtension', 'django_jinja.builtins.extensions.CsrfExtension', 'django_jinja.builtins.extensions.CacheExtension', 'django_jinja.builtins.extensions.TimezoneExtension', 'django_jinja.builtins.extensions.UrlsExtension', 'django_jinja.builtins.extensions.StaticFilesExtension', 'django_jinja.builtins.extensions.DjangoFiltersExtension']
239DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage'
240DEFAULT_FROM_EMAIL = 'admin@admin.admin'
241DEFAULT_INDEX_TABLESPACE = ''
242DEFAULT_TABLESPACE = ''
243DISALLOWED_USER_AGENTS = []
244EMAIL_BACKEND = 'des.backends.ConfiguredEmailBackend'
245EMAIL_CONFIG = {'EMAIL_FILE_PATH': '', 'EMAIL_HOST_USER': None, 'EMAIL_HOST_PASSWORD': '********************', 'EMAIL_HOST': '127.0.0.1', 'EMAIL_PORT': None, 'EMAIL_BACKEND': 'django.core.mail.backends.console.EmailBackend'}
246EMAIL_FILE_PATH = ''
247EMAIL_HOST = '127.0.0.1'
248EMAIL_HOST_PASSWORD = '********************'
249EMAIL_HOST_USER = None
250EMAIL_PORT = None
251EMAIL_SSL_CERTFILE = None
252EMAIL_SSL_KEYFILE = '********************'
253EMAIL_SUBJECT_PREFIX = '[Django] '
254EMAIL_TIMEOUT = None
255EMAIL_USE_LOCALTIME = False
256EMAIL_USE_SSL = False
257EMAIL_USE_TLS = False
258FILE_CHARSET = 'utf-8'
259FILE_UPLOAD_DIRECTORY_PERMISSIONS = None
260FILE_UPLOAD_HANDLERS = ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler']
261FILE_UPLOAD_MAX_MEMORY_SIZE = 2621440
262FILE_UPLOAD_PERMISSIONS = None
263FILE_UPLOAD_TEMP_DIR = None
264FIRST_DAY_OF_WEEK = 0
265FIXTURE_DIRS = []
266FORCE_SCRIPT_NAME = None
267FORMAT_MODULE_PATH = None
268FORM_RENDERER = 'django.forms.renderers.DjangoTemplates'
269IGNORABLE_404_URLS = []
270INSTALLED_APPS = ['markup', 'apps.authentication', 'apps.products', 'apps.auction', 'apps.booking', 'apps.payment', 'apps.pages', 'apps.menus', 'rosetta', 'seo', 'django_jinja', 'robots', 'des', 'parler', 'ckeditor', 'postie', 'constance', 'django_filters', 'vuejs_translate', 'adminsortable2', 'solo', 'colorfield', 'django_mptt_admin', 'jet', 'jet.dashboard', 'allauth', 'allauth.account', 'allauth.socialaccount', 'allauth.socialaccount.providers.vk', 'allauth.socialaccount.providers.instagram', 'allauth.socialaccount.providers.google', 'allauth.socialaccount.providers.facebook', 'django_otp', 'django_otp.plugins.otp_totp', 'corsheaders', 'instant', 'apps.staff', 'rest_framework', 'rest_framework.authtoken', 'rest_auth.registration', 'script_pattern', 'apps.staff.apps.MyAdminConfig', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.sites', 'django.contrib.redirects']
271INTERNAL_IPS = []
272IS_SSL = True
273JET_SIDE_MENU_COMPACT = True
274JET_SIDE_MENU_ITEMS = [{'label': 'Основное', 'items': [{'label': 'Пополнения', 'url': '/admin/payment/payment/?status__exact=paid'}, {'label': 'Выплаты', 'url': '/admin/booking/order/?product__type__exact=certificate&status__exact=process'}, {'name': 'booking.order'}]}, {'label': 'Пользователи', 'items': [{'name': 'auction.cheatproduct'}, {'name': 'auction.cheatpoints'}, {'name': 'staff.authlog'}, {'name': 'staff.transitionlog'}, {'name': 'staff.user'}, {'name': 'staff.usernameban'}, {'name': 'staff.review'}]}, {'label': 'Партнеры', 'items': [{'name': 'staff.advertiserrequest'}, {'name': 'staff.referralstatistic'}, {'name': 'staff.advertiserwithdrawnrequest'}]}, {'label': 'Аукционы', 'items': [{'name': 'products.product'}, {'name': 'auction.auction'}, {'name': 'products.category'}, {'name': 'products.productlabel'}]}, {'label': 'Настройки', 'items': [{'label': 'Настройки', 'url': '/admin/constance/config/'}, {'name': 'auction.bot'}, {'name': 'auction.botconfiguration'}, {'name': 'booking.deliverytype'}, {'name': 'payment.paymentconfig'}, {'name': 'redirects.redirect'}, {'name': 'socialaccount.socialapp'}, {'name': 'script_pattern.scriptblock'}, {'name': 'script_pattern.scripturl'}, {'label': 'Настройки двухфакторной авторизации', 'url': '/admin/otp_totp/totpdevice/'}]}, {'label': 'Наполнение', 'items': [{'name': 'menus.headeritem'}, {'name': 'menus.footeritem'}, {'name': 'menus.rulesitem'}, {'name': 'pages.footerlogo'}, {'name': 'pages.mainpoints'}, {'name': 'pages.aboutus'}, {'name': 'pages.faq'}, {'name': 'pages.feedback'}, {'name': 'payment.paymentimage'}, {'name': 'pages.typical'}, {'name': 'pages.popupcontent'}, {'name': 'pages.partner'}, {'name': 'pages.deliverypage'}, {'name': 'pages.advertisingpage'}]}, {'label': 'Раздел почты', 'items': [{'name': 'postie.letter'}, {'name': 'postie.template'}]}, {'label': 'Dynamic email settings', 'items': [{'name': 'des.dynamicemailconfiguration'}]}, {'label': 'Сайты', 'items': [{'name': 'sites.site'}]}, {'label': 'Группы', 'items': [{'name': 'auth.group'}]}, {'label': 'Токен аутентификации', 'items': [{'name': 'authtoken.token'}]}, {'label': 'Robots', 'items': [{'name': 'robots.url'}, {'name': 'robots.rule'}]}, {'label': 'SEO', 'items': [{'name': 'seo.viewseo'}, {'name': 'seo.urlseo'}]}, {'label': 'Прочее', 'items': [{'name': 'payment.log'}, {'name': 'payment.statisticmodel'}, {'name': 'staff.userstatistic'}]}]
275LANGUAGES = "(('ru', 'Russian'),)"
276LANGUAGES_BIDI = ['he', 'ar', 'fa', 'ur']
277LANGUAGE_CODE = 'ru'
278LANGUAGE_COOKIE_AGE = None
279LANGUAGE_COOKIE_DOMAIN = None
280LANGUAGE_COOKIE_NAME = 'django_language'
281LANGUAGE_COOKIE_PATH = '/'
282LOCALE_PATHS = "(PosixPath('/home/garant/garant/garant/server/app/locale'),)"
283LOGGING = {'version': 1, 'disable_existing_loggers': False, 'handlers': {'console': {'level': 'DEBUG', 'class': 'logging.StreamHandler'}, 'logfile': {'level': 'DEBUG', 'class': 'logging.FileHandler', 'filename': PosixPath('/home/garant/garant/garant/server/app/settings/django.py/../logfile.log')}}, 'root': {'level': 'INFO', 'handlers': ['console', 'logfile']}}
284LOGGING_CONFIG = 'logging.config.dictConfig'
285LOGIN_REDIRECT_URL = '/'
286LOGIN_URL = '/accounts/login/'
287LOGOUT_REDIRECT_URL = None
288MANAGERS = []
289MEDIA_ROOT = PosixPath('/home/garant/garant/garant/server/app/uploads')
290MEDIA_URL = '/uploads/'
291MENU_SETTINGS = {'variations': [{'label': 'Элемент хедера', 'label_plural': 'Хедер', 'position': 'header', 'is_nested': False}, {'label': 'Правила сервиса в футере', 'label_plural': 'Правила сервиса в футере', 'position': 'rules', 'is_nested': False}, {'label': 'Футер', 'label_plural': 'Футер', 'position': 'footer', 'is_nested': False}]}
292MESSAGE_STORAGE = 'django.contrib.messages.storage.fallback.FallbackStorage'
293MIDDLEWARE = ['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_otp.middleware.OTPMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'apps.pages.middleware.RedirectMiddleware', 'apps.authentication.middleware.TransitionLogMiddleware', 'seo.middleware.url_seo_middleware']
294MIGRATION_MODULES = {}
295MONTH_DAY_FORMAT = 'F j'
296NUMBER_GROUPING = 0
297OLD_PASSWORD_FIELD_ENABLED = '********************'
298PASSWORD_HASHERS = '********************'
299PASSWORD_RESET_TIMEOUT_DAYS = '********************'
300POSTIE_HTML_ADMIN_WIDGET = {'widget': 'CKEditorWidget', 'widget_module': 'ckeditor.widgets'}
301POSTIE_INSTANT_SEND = True
302POSTIE_TEMPLATE_CHOICES = Choices(('password_reset', 'password_reset', 'Восстановление пароля'), ('registration', 'registration', 'Регистрация'), ('confirmation', 'confirmation', 'Подтверждение'), ('points', 'points', 'Пополнение поинтов'), ('withdrawal_request', 'withdrawal_request', 'Запрос на вывод средств'), ('order_change_status', 'order_change_status', 'Заказ изменил статус'), ('auction_winning', 'auction_winning', 'Выигрыш лота'), ('advertiser_request', 'advertiser_request', 'Запрос на партнерство'), ('advertiser_admin', 'advertiser_admin', 'Запрос на партнерство'))
303POSTIE_TEMPLATE_CONTEXTS = {'advertiser_admin': {'email': 'Адрес электронной почты', 'full_name': 'Имя', 'link': 'Ссылка'}, 'advertiser_request': {'subject': 'Тема', 'content': 'Контент', 'email': 'Адрес электронной почты', 'name': 'имя'}, 'password_reset': '********************', 'registration': {'username': 'Никнейм', 'email': 'Адрес электронной почты', 'link': 'Ссылка'}, 'confirmation': {'username': 'Никнейм', 'email': 'Адрес электронной почты', 'link': 'Ссылка'}, 'points': {'username': 'Никнейм', 'email': 'Адрес электронной почты', 'points': 'Points amount'}, 'withdrawal_request': {'username': 'Никнейм', 'email': 'Адрес электронной почты', 'order_link': 'Порядок', 'points_amount': 'Порядок'}, 'order_change_status': {'username': 'Никнейм', 'email': 'Адрес электронной почты', 'new_status': 'New order status', 'cabinet_link': 'Cabinet link'}, 'auction_winning': {'username': 'Никнейм', 'email': 'Адрес электронной почты', 'title': 'Product title', 'auction_link': 'Ссылка на аукцион', 'cabinet_link': 'Cabinet link'}}
304PREPEND_WWW = False
305PROJECT_APPS = ['markup', 'apps.authentication', 'apps.products', 'apps.auction', 'apps.booking', 'apps.payment', 'apps.pages', 'apps.menus']
306ROOT_URLCONF = 'app.urls'
307ROSETTA_CACHE_NAME = 'default'
308ROSETTA_SHOW_AT_ADMIN_PANEL = True
309ROSETTA_STORAGE_CLASS = 'rosetta.storage.CacheRosettaStorage'
310SECRET_KEY = '********************'
311SECURE_BROWSER_XSS_FILTER = False
312SECURE_CONTENT_TYPE_NOSNIFF = False
313SECURE_HSTS_INCLUDE_SUBDOMAINS = False
314SECURE_HSTS_PRELOAD = False
315SECURE_HSTS_SECONDS = 0
316SECURE_PROXY_SSL_HEADER = None
317SECURE_REDIRECT_EXEMPT = []
318SECURE_SSL_HOST = None
319SECURE_SSL_REDIRECT = False
320SEO_MODELS = ['pages.aboutUs', 'pages.feedback', 'pages.typical', 'pages.faq', 'pages.deliveryPage', 'pages.advertisingPage', 'products.product']
321SEO_VIEWS_CHOICES = "(('index', 'Index'),)"
322SERVER_EMAIL = 'root@localhost'
323SESSION_CACHE_ALIAS = 'default'
324SESSION_COOKIE_AGE = 1209600
325SESSION_COOKIE_DOMAIN = None
326SESSION_COOKIE_HTTPONLY = True
327SESSION_COOKIE_NAME = 'sessionid'
328SESSION_COOKIE_PATH = '/'
329SESSION_COOKIE_SAMESITE = 'Lax'
330SESSION_COOKIE_SECURE = False
331SESSION_ENGINE = 'django.contrib.sessions.backends.db'
332SESSION_EXPIRE_AT_BROWSER_CLOSE = False
333SESSION_FILE_PATH = None
334SESSION_SAVE_EVERY_REQUEST = False
335SESSION_SERIALIZER = 'django.contrib.sessions.serializers.JSONSerializer'
336SETTINGS_MODULE = 'app.settings'
337SHORT_DATETIME_FORMAT = 'm/d/Y P'
338SHORT_DATE_FORMAT = 'm/d/Y'
339SIGNING_BACKEND = 'django.core.signing.TimestampSigner'
340SILENCED_SYSTEM_CHECKS = []
341SITE_ID = 1
342SITE_NAME = 'Garant'
343SITE_SLUG = 'garant'
344SOCIALACCOUNT_ADAPTER = 'apps.authentication.social_adapter.NewDefaultAccountAdapter'
345SOCIALACCOUNT_PROVIDERS = {'google': {'SCOPE': ['profile', 'email'], 'AUTH_PARAMS': {'access_type': 'online'}}, 'facebook': {'METHOD': 'oauth2', 'SCOPE': ['email', 'public_profile', 'user_friends'], 'AUTH_PARAMS': {'auth_type': 'reauthenticate'}, 'FIELDS': ['id', 'email', 'name', 'verified', 'locale', 'timezone', 'link', 'gender', 'updated_time'], 'EXCHANGE_TOKEN': '********************', 'LOCALE_FUNC': <function <lambda> at 0x7f7a2a396c10>, 'VERIFIED_EMAIL': True, 'VERSION': 'v3.2'}}
346STATICFILES_DIRS = []
347STATICFILES_FINDERS = ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder']
348STATICFILES_STORAGE = 'shared.static_storage.DjsManifestStaticFilesStorage'
349STATIC_ROOT = PosixPath('/home/garant/garant/garant/server/app/static')
350STATIC_URL = '/static/'
351TEMPLATES = [{'BACKEND': 'django_jinja.backend.Jinja2', 'NAME': 'jinja2', 'APP_DIRS': True, 'DIRS': [], 'OPTIONS': {'environment': 'shared.env.jinja2.environment', 'match_extension': '.jinja', 'newstyle_gettext': True, 'auto_reload': True, 'undefined': <class 'jinja2.runtime.Undefined'>, 'debug': True, 'filters': {}, 'globals': {}, 'context_processors': ['django.contrib.auth.context_processors.auth', 'django.template.context_processors.debug', 'django.template.context_processors.i18n', 'django.template.context_processors.media', 'django.template.context_processors.static', 'django.template.context_processors.tz', 'django.contrib.messages.context_processors.messages', 'constance.context_processors.config', 'seo.context_processors.seo'], 'extensions': ['jinja2.ext.do', 'jinja2.ext.loopcontrols', 'jinja2.ext.with_', 'jinja2.ext.i18n', 'jinja2.ext.autoescape', 'django_jinja.builtins.extensions.DebugExtension', 'django_jinja.builtins.extensions.CsrfExtension', 'django_jinja.builtins.extensions.CacheExtension', 'django_jinja.builtins.extensions.TimezoneExtension', 'django_jinja.builtins.extensions.UrlsExtension', 'django_jinja.builtins.extensions.StaticFilesExtension', 'django_jinja.builtins.extensions.DjangoFiltersExtension'], 'bytecode_cache': {'name': 'default', 'backend': 'django_jinja.cache.BytecodeCache', 'enabled': True}}}, {'DIRS': [], 'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'OPTIONS': {'context_processors': ['django.template.context_processors.media', 'django.template.context_processors.static', 'django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.messages.context_processors.messages', 'django.contrib.auth.context_processors.auth']}}]
352TEST_NON_SERIALIZED_APPS = []
353TEST_RUNNER = 'django.test.runner.DiscoverRunner'
354THOUSAND_SEPARATOR = ','
355TIME_FORMAT = 'P'
356TIME_INPUT_FORMATS = ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M']
357TIME_ZONE = 'UTC'
358USE_I18N = True
359USE_L10N = True
360USE_THOUSAND_SEPARATOR = False
361USE_TZ = True
362USE_X_FORWARDED_HOST = False
363USE_X_FORWARDED_PORT = False
364WSGI_APPLICATION = 'app.wsgi.application'
365X_FRAME_OPTIONS = 'SAMEORIGIN'
366YEAR_MONTH_FORMAT = 'F Y'
367
368
369You're seeing this error because you have DEBUG = True in your
370Django settings file. Change that to False, and Django will
371display a standard page generated by the handler for this status code.
372