· 4 years ago · Jul 13, 2021, 10:14 AM
1ValueError at /api/v1/auction/rate/create/
2empty range for randrange() (20, 3, -17)
3
4Request Method: POST
5Request URL: https://garant-order.com/api/v1/auction/rate/create/
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: Вт, 13 Июл 2021 10:07: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/decorators/csrf.py" in wrapped_view
88 54. return view_func(*args, **kwargs)
89
90File "/home/garant/garant/garant/server/.venv/lib/python3.8/site-packages/django/views/generic/base.py" in view
91 68. return self.dispatch(request, *args, **kwargs)
92
93File "/home/garant/garant/garant/server/.venv/lib/python3.8/site-packages/rest_framework/views.py" in dispatch
94 495. response = self.handle_exception(exc)
95
96File "/home/garant/garant/garant/server/.venv/lib/python3.8/site-packages/rest_framework/views.py" in handle_exception
97 455. self.raise_uncaught_exception(exc)
98
99File "/home/garant/garant/garant/server/.venv/lib/python3.8/site-packages/rest_framework/views.py" in dispatch
100 492. response = handler(request, *args, **kwargs)
101
102File "/home/garant/garant/garant/server/.venv/lib/python3.8/site-packages/rest_framework/generics.py" in post
103 192. return self.create(request, *args, **kwargs)
104
105File "/home/garant/garant/garant/server/.venv/lib/python3.8/site-packages/rest_framework/mixins.py" in create
106 21. self.perform_create(serializer)
107
108File "/home/garant/garant/garant/server/.venv/lib/python3.8/site-packages/rest_framework/mixins.py" in perform_create
109 26. serializer.save()
110
111File "/home/garant/garant/garant/server/.venv/lib/python3.8/site-packages/rest_framework/serializers.py" in save
112 214. self.instance = self.create(validated_data)
113
114File "/home/garant/garant/garant/server/apps/auction/rest/serializers.py" in create
115 70. return user_make_rate(
116
117File "/home/garant/garant/garant/server/apps/auction/contrib/usecases.py" in user_make_rate
118 114. _reload_auction_process(auction)
119
120File "/home/garant/garant/garant/server/apps/auction/contrib/usecases.py" in _reload_auction_process
121 26. Bot(auction).appoint_bot()
122
123File "/home/garant/garant/garant/server/apps/auction/contrib/bot.py" in appoint_bot
124 60. self._appoint_bot()
125
126File "/home/garant/garant/garant/server/apps/auction/contrib/bot.py" in _appoint_bot
127 34. random_timestamp = random.randrange(
128
129File "/home/garant/garant/garant/server/.venv/lib/python3.8/random.py" in randrange
130 226. raise ValueError("empty range for randrange() (%d, %d, %d)" % (istart, istop, width))
131
132Exception Type: ValueError at /api/v1/auction/rate/create/
133Exception Value: empty range for randrange() (20, 3, -17)
134Request information:
135USER: admin
136
137GET: No GET data
138
139POST: No POST data
140
141FILES: No FILES data
142
143COOKIES:
144_ym_d = '1626167010'
145_ym_uid = '1626167010258474552'
146_ym_isad = '1'
147cookieconsent_status = 'dismiss'
148csrftoken = '4Cl2XkheGQMqmKxbFUN4gc6QUP1FO9gS3A4kiQFmyk6fCgU7KAhyUaxxyE2RZj4I'
149sessionid = 'k9kz31ll8cixfd652y0fx88mro7tog45'
150
151META:
152CONTENT_LENGTH = '18'
153CONTENT_TYPE = 'application/json'
154CSRF_COOKIE = '4Cl2XkheGQMqmKxbFUN4gc6QUP1FO9gS3A4kiQFmyk6fCgU7KAhyUaxxyE2RZj4I'
155HTTP_ACCEPT = '*/*'
156HTTP_ACCEPT_ENCODING = 'gzip, deflate, br'
157HTTP_ACCEPT_LANGUAGE = 'ru,en;q=0.9,es;q=0.8,en-GB;q=0.7,en-US;q=0.6'
158HTTP_CONNECTION = 'close'
159HTTP_COOKIE = '_ym_d=1626167010; _ym_uid=1626167010258474552; _ym_isad=1; cookieconsent_status=dismiss; csrftoken=4Cl2XkheGQMqmKxbFUN4gc6QUP1FO9gS3A4kiQFmyk6fCgU7KAhyUaxxyE2RZj4I; sessionid=k9kz31ll8cixfd652y0fx88mro7tog45'
160HTTP_HOST = 'garant-order.com'
161HTTP_ORIGIN = 'https://garant-order.com'
162HTTP_REFERER = 'https://garant-order.com/cabinet/main/client'
163HTTP_SEC_CH_UA = '" Not;A Brand";v="99", "Google Chrome";v="91", "Chromium";v="91"'
164HTTP_SEC_CH_UA_MOBILE = '?0'
165HTTP_SEC_FETCH_DEST = 'empty'
166HTTP_SEC_FETCH_MODE = 'same-origin'
167HTTP_SEC_FETCH_SITE = 'same-origin'
168HTTP_USER_AGENT = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36'
169HTTP_X_CSRFTOKEN = '4Cl2XkheGQMqmKxbFUN4gc6QUP1FO9gS3A4kiQFmyk6fCgU7KAhyUaxxyE2RZj4I'
170HTTP_X_FORWARDED_FOR = '89.21.95.134'
171HTTP_X_FORWARDED_PROTO = 'https'
172HTTP_X_REQUESTED_WITH = 'XMLHttpRequest'
173PATH_INFO = '/api/v1/auction/rate/create/'
174QUERY_STRING = ''
175RAW_URI = '/api/v1/auction/rate/create/'
176REMOTE_ADDR = ''
177REQUEST_METHOD = 'POST'
178SCRIPT_NAME = ''
179SERVER_NAME = 'garant-order.com'
180SERVER_PORT = '443'
181SERVER_PROTOCOL = 'HTTP/1.0'
182SERVER_SOFTWARE = 'gunicorn/20.0.4'
183gunicorn.socket = <gevent._socket3.socket at 0x7f94023f7340 object, fd=22, family=1, type=1, proto=0>
184wsgi.errors = <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7f94018984f0>
185wsgi.file_wrapper = ''
186wsgi.input = <gunicorn.http.body.Body object at 0x7f940295e460>
187wsgi.input_terminated = True
188wsgi.multiprocess = True
189wsgi.multithread = True
190wsgi.run_once = False
191wsgi.url_scheme = 'https'
192wsgi.version = '(1, 0)'
193
194Settings:
195Using settings module app.settings
196ABSOLUTE_URL_OVERRIDES = {}
197ACCOUNT_AUTHENTICATION_METHOD = 'username_email'
198ACCOUNT_EMAIL_VERIFICATION = 'none'
199ADMINS = []
200ALLOWED_HOSTS = ['167.172.170.22', 'garant-order.com']
201APPEND_SLASH = True
202ASGI_APPLICATION = 'app.routing.application'
203AUTHENTICATION_BACKENDS = "('apps.authentication.backends.ModelBackend', 'apps.authentication.backends.AuthenticationBackend')"
204AUTH_PASSWORD_VALIDATORS = '********************'
205AUTH_USER_MODEL = 'staff.User'
206BASE_DIR = PosixPath('/home/garant/garant/garant/server/app/settings/django.py')
207BASE_ROOT = PosixPath('/home/garant/garant/garant/server/app')
208CACHES = {'default': {'BACKEND': 'django_redis.cache.RedisCache', 'LOCATION': 'redis://127.0.0.1:6379/1'}}
209CACHE_MIDDLEWARE_ALIAS = 'default'
210CACHE_MIDDLEWARE_KEY_PREFIX = '********************'
211CACHE_MIDDLEWARE_SECONDS = 600
212CELERY_ACCEPT_CONTENT = ['application/json']
213CELERY_BROKER_TRANSPORT_OPTIONS = {'socket_timeout': 10, 'fanout_prefix': True, 'fanout_patterns': True}
214CELERY_BROKER_URL = 'redis://localhost:6379/1'
215CELERY_RESULT_BACKEND = 'redis://localhost:6379/0'
216CELERY_RESULT_SERIALIZER = 'json'
217CELERY_TASK_SERIALIZER = 'json'
218CENTRIFUGO_HOST = 'https://garant-order.com/centrifugo/'
219CENTRIFUGO_PORT = '80'
220CENTRIFUGO_PROXY = True
221CENTRIFUGO_SECRET_KEY = '********************'
222CENTRIFUGO_URL = 'https://garant-order.com/centrifugo/connection/'
223CHANNEL_LAYERS = {'default': {'BACKEND': 'channels_redis.core.RedisChannelLayer', 'CONFIG': {'hosts': [('localhost', 6379)], 'capacity': 1000}}}
224CKEDITOR_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']}]}}
225CONSTANCE_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'>, {}]}
226CONSTANCE_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')}
227CONSTANCE_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')}
228CONSTANCE_DATABASE_CACHE_AUTOFILL_TIMEOUT = None
229CONSTANCE_REDIS_CONNECTION_CLASS = 'django_redis.get_redis_connection'
230CORS_ORIGIN_WHITELIST = "('http://localhost:8001', 'http://127.0.0.1:8535', 'http://localhost:8535')"
231CSRF_COOKIE_AGE = 31449600
232CSRF_COOKIE_DOMAIN = None
233CSRF_COOKIE_HTTPONLY = False
234CSRF_COOKIE_NAME = 'csrftoken'
235CSRF_COOKIE_PATH = '/'
236CSRF_COOKIE_SAMESITE = 'Lax'
237CSRF_COOKIE_SECURE = False
238CSRF_FAILURE_VIEW = 'django.views.csrf.csrf_failure'
239CSRF_HEADER_NAME = 'HTTP_X_CSRFTOKEN'
240CSRF_TRUSTED_ORIGINS = []
241CSRF_USE_SESSIONS = False
242DATABASES = {'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}}}
243DATABASE_ROUTERS = []
244DATA_UPLOAD_MAX_MEMORY_SIZE = 2621440
245DATA_UPLOAD_MAX_NUMBER_FIELDS = 1000
246DATETIME_FORMAT = 'N j, Y, P'
247DATETIME_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']
248DATE_FORMAT = 'N j, Y'
249DATE_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']
250DEBUG = True
251DEBUG_PROPAGATE_EXCEPTIONS = False
252DECIMAL_SEPARATOR = '.'
253DEFAULT_CHARSET = 'utf-8'
254DEFAULT_CONTENT_TYPE = 'text/html'
255DEFAULT_EXCEPTION_REPORTER_FILTER = 'django.views.debug.SafeExceptionReporterFilter'
256DEFAULT_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']
257DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage'
258DEFAULT_FROM_EMAIL = 'admin@admin.admin'
259DEFAULT_INDEX_TABLESPACE = ''
260DEFAULT_TABLESPACE = ''
261DISALLOWED_USER_AGENTS = []
262EMAIL_BACKEND = 'des.backends.ConfiguredEmailBackend'
263EMAIL_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'}
264EMAIL_FILE_PATH = ''
265EMAIL_HOST = '127.0.0.1'
266EMAIL_HOST_PASSWORD = '********************'
267EMAIL_HOST_USER = None
268EMAIL_PORT = None
269EMAIL_SSL_CERTFILE = None
270EMAIL_SSL_KEYFILE = '********************'
271EMAIL_SUBJECT_PREFIX = '[Django] '
272EMAIL_TIMEOUT = None
273EMAIL_USE_LOCALTIME = False
274EMAIL_USE_SSL = False
275EMAIL_USE_TLS = False
276FILE_CHARSET = 'utf-8'
277FILE_UPLOAD_DIRECTORY_PERMISSIONS = None
278FILE_UPLOAD_HANDLERS = ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler']
279FILE_UPLOAD_MAX_MEMORY_SIZE = 2621440
280FILE_UPLOAD_PERMISSIONS = None
281FILE_UPLOAD_TEMP_DIR = None
282FIRST_DAY_OF_WEEK = 0
283FIXTURE_DIRS = []
284FORCE_SCRIPT_NAME = None
285FORMAT_MODULE_PATH = None
286FORM_RENDERER = 'django.forms.renderers.DjangoTemplates'
287IGNORABLE_404_URLS = []
288INSTALLED_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']
289INTERNAL_IPS = []
290IS_SSL = True
291JET_SIDE_MENU_COMPACT = True
292JET_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'}]}]
293LANGUAGES = "(('ru', 'Russian'),)"
294LANGUAGES_BIDI = ['he', 'ar', 'fa', 'ur']
295LANGUAGE_CODE = 'ru'
296LANGUAGE_COOKIE_AGE = None
297LANGUAGE_COOKIE_DOMAIN = None
298LANGUAGE_COOKIE_NAME = 'django_language'
299LANGUAGE_COOKIE_PATH = '/'
300LOCALE_PATHS = "(PosixPath('/home/garant/garant/garant/server/app/locale'),)"
301LOGGING = {'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']}}
302LOGGING_CONFIG = 'logging.config.dictConfig'
303LOGIN_REDIRECT_URL = '/'
304LOGIN_URL = '/accounts/login/'
305LOGOUT_REDIRECT_URL = None
306MANAGERS = []
307MEDIA_ROOT = PosixPath('/home/garant/garant/garant/server/app/uploads')
308MEDIA_URL = '/uploads/'
309MENU_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}]}
310MESSAGE_STORAGE = 'django.contrib.messages.storage.fallback.FallbackStorage'
311MIDDLEWARE = ['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']
312MIGRATION_MODULES = {}
313MONTH_DAY_FORMAT = 'F j'
314NUMBER_GROUPING = 0
315OLD_PASSWORD_FIELD_ENABLED = '********************'
316PASSWORD_HASHERS = '********************'
317PASSWORD_RESET_TIMEOUT_DAYS = '********************'
318POSTIE_HTML_ADMIN_WIDGET = {'widget': 'CKEditorWidget', 'widget_module': 'ckeditor.widgets'}
319POSTIE_INSTANT_SEND = True
320POSTIE_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', 'Запрос на партнерство'))
321POSTIE_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'}}
322PREPEND_WWW = False
323PROJECT_APPS = ['markup', 'apps.authentication', 'apps.products', 'apps.auction', 'apps.booking', 'apps.payment', 'apps.pages', 'apps.menus']
324ROOT_URLCONF = 'app.urls'
325ROSETTA_CACHE_NAME = 'default'
326ROSETTA_SHOW_AT_ADMIN_PANEL = True
327ROSETTA_STORAGE_CLASS = 'rosetta.storage.CacheRosettaStorage'
328SECRET_KEY = '********************'
329SECURE_BROWSER_XSS_FILTER = False
330SECURE_CONTENT_TYPE_NOSNIFF = False
331SECURE_HSTS_INCLUDE_SUBDOMAINS = False
332SECURE_HSTS_PRELOAD = False
333SECURE_HSTS_SECONDS = 0
334SECURE_PROXY_SSL_HEADER = None
335SECURE_REDIRECT_EXEMPT = []
336SECURE_SSL_HOST = None
337SECURE_SSL_REDIRECT = False
338SEO_MODELS = ['pages.aboutUs', 'pages.feedback', 'pages.typical', 'pages.faq', 'pages.deliveryPage', 'pages.advertisingPage', 'products.product']
339SEO_VIEWS_CHOICES = "(('index', 'Index'),)"
340SERVER_EMAIL = 'root@localhost'
341SESSION_CACHE_ALIAS = 'default'
342SESSION_COOKIE_AGE = 1209600
343SESSION_COOKIE_DOMAIN = None
344SESSION_COOKIE_HTTPONLY = True
345SESSION_COOKIE_NAME = 'sessionid'
346SESSION_COOKIE_PATH = '/'
347SESSION_COOKIE_SAMESITE = 'Lax'
348SESSION_COOKIE_SECURE = False
349SESSION_ENGINE = 'django.contrib.sessions.backends.db'
350SESSION_EXPIRE_AT_BROWSER_CLOSE = False
351SESSION_FILE_PATH = None
352SESSION_SAVE_EVERY_REQUEST = False
353SESSION_SERIALIZER = 'django.contrib.sessions.serializers.JSONSerializer'
354SETTINGS_MODULE = 'app.settings'
355SHORT_DATETIME_FORMAT = 'm/d/Y P'
356SHORT_DATE_FORMAT = 'm/d/Y'
357SIGNING_BACKEND = 'django.core.signing.TimestampSigner'
358SILENCED_SYSTEM_CHECKS = []
359SITE_ID = 1
360SITE_NAME = 'Garant'
361SITE_SLUG = 'garant'
362SOCIALACCOUNT_ADAPTER = 'apps.authentication.social_adapter.NewDefaultAccountAdapter'
363SOCIALACCOUNT_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 0x7f940bff1c10>, 'VERIFIED_EMAIL': True, 'VERSION': 'v3.2'}}
364STATICFILES_DIRS = []
365STATICFILES_FINDERS = ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder']
366STATICFILES_STORAGE = 'shared.static_storage.DjsManifestStaticFilesStorage'
367STATIC_ROOT = PosixPath('/home/garant/garant/garant/server/app/static')
368STATIC_URL = '/static/'
369TEMPLATES = [{'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']}}]
370TEST_NON_SERIALIZED_APPS = []
371TEST_RUNNER = 'django.test.runner.DiscoverRunner'
372THOUSAND_SEPARATOR = ','
373TIME_FORMAT = 'P'
374TIME_INPUT_FORMATS = ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M']
375TIME_ZONE = 'UTC'
376USE_I18N = True
377USE_L10N = True
378USE_THOUSAND_SEPARATOR = False
379USE_TZ = True
380USE_X_FORWARDED_HOST = False
381USE_X_FORWARDED_PORT = False
382WSGI_APPLICATION = 'app.wsgi.application'
383X_FRAME_OPTIONS = 'SAMEORIGIN'
384YEAR_MONTH_FORMAT = 'F Y'
385
386
387You're seeing this error because you have DEBUG = True in your
388Django settings file. Change that to False, and Django will
389display a standard page generated by the handler for this status code.
390