· 4 years ago · Jan 15, 2021, 11:10 AM
1AttributeError at /api/v1/auth/login/
2'NoneType' object has no attribute 'is_active'
3
4Request Method: POST
5Request URL: https://mytopbet.com/api/v1/auth/login/
6Django Version: 3.0.10
7Python Executable: /home/topbet/topbet/topbet/server/.venv/bin/python3.7
8Python Version: 3.7.5
9Python Path: ['/home/topbet/topbet/topbet/server', '/home/topbet/topbet/topbet/server', '/home/topbet/topbet/topbet/server/.venv/bin', '/home/topbet/topbet/topbet/server/.venv/lib/python37.zip', '/home/topbet/topbet/topbet/server/.venv/lib/python3.7', '/home/topbet/topbet/topbet/server/.venv/lib/python3.7/lib-dynload', '/usr/lib/python3.7', '/home/topbet/topbet/topbet/server/.venv/lib/python3.7/site-packages']
10Server time: Пт, 15 Січ 2021 13:02:26 +0200
11Installed Applications:
12['markup',
13 'shared',
14 'apps.academy',
15 'apps.adds',
16 'apps.bots',
17 'apps.bookmakers',
18 'apps.chat',
19 'apps.common',
20 'apps.faq',
21 'apps.forecasts',
22 'apps.handling',
23 'apps.messengers',
24 'apps.organization',
25 'apps.pages',
26 'apps.payments',
27 'apps.security',
28 'apps.staff',
29 'apps.stats',
30 'admin_auto_filters',
31 'adminsortable2',
32 'ckeditor',
33 'ckeditor_uploader',
34 'des',
35 'django_filters',
36 'django_jinja',
37 'jet',
38 'modeltranslation',
39 'parler',
40 'postie',
41 'rest_framework',
42 'rest_framework.authtoken',
43 'rest_framework_recaptcha',
44 'robots',
45 'rosetta',
46 'script_pattern',
47 'seo',
48 'solo',
49 'standards',
50 'subdomains',
51 'vuejs_translate',
52 'django.contrib.admin',
53 'django.contrib.auth',
54 'django.contrib.contenttypes',
55 'qsessions',
56 'django.contrib.messages',
57 'django.contrib.staticfiles',
58 'django.contrib.sites',
59 'allauth',
60 'allauth.account',
61 'allauth.socialaccount',
62 'allauth.socialaccount.providers.google',
63 'allauth.socialaccount.providers.facebook',
64 'allauth.socialaccount.providers.twitter',
65 'rest_auth',
66 'rest_auth.registration',
67 'django_otp',
68 'django_otp.plugins.otp_totp',
69 'django_otp.plugins.otp_email']
70Installed Middleware:
71['django.middleware.security.SecurityMiddleware',
72 'qsessions.middleware.SessionMiddleware',
73 'subdomains.middleware.SubdomainMiddleware',
74 'django.middleware.common.CommonMiddleware',
75 'django.middleware.csrf.CsrfViewMiddleware',
76 'django.middleware.locale.LocaleMiddleware',
77 'django.contrib.auth.middleware.AuthenticationMiddleware',
78 'django_otp.middleware.OTPMiddleware',
79 'django.contrib.messages.middleware.MessageMiddleware',
80 'django.middleware.clickjacking.XFrameOptionsMiddleware',
81 'seo.middleware.url_seo_middleware',
82 'apps.staff.middlewares.SubdomainUserMiddleware']
83
84
85Traceback (most recent call last):
86 File "/home/topbet/topbet/topbet/server/.venv/lib/python3.7/site-packages/django/core/handlers/exception.py", line 34, in inner
87 response = get_response(request)
88 File "/home/topbet/topbet/topbet/server/.venv/lib/python3.7/site-packages/django/core/handlers/base.py", line 115, in _get_response
89 response = self.process_exception_by_middleware(e, request)
90 File "/home/topbet/topbet/topbet/server/.venv/lib/python3.7/site-packages/django/core/handlers/base.py", line 113, in _get_response
91 response = wrapped_callback(request, *callback_args, **callback_kwargs)
92 File "/home/topbet/topbet/topbet/server/.venv/lib/python3.7/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
93 return view_func(*args, **kwargs)
94 File "/home/topbet/topbet/topbet/server/.venv/lib/python3.7/site-packages/django/views/generic/base.py", line 71, in view
95 return self.dispatch(request, *args, **kwargs)
96 File "/home/topbet/topbet/topbet/server/.venv/lib/python3.7/site-packages/django/utils/decorators.py", line 43, in _wrapper
97 return bound_method(*args, **kwargs)
98 File "/home/topbet/topbet/topbet/server/.venv/lib/python3.7/site-packages/django/views/decorators/debug.py", line 76, in sensitive_post_parameters_wrapper
99 return view(request, *args, **kwargs)
100 File "/home/topbet/topbet/topbet/server/.venv/lib/python3.7/site-packages/rest_auth/views.py", line 49, in dispatch
101 return super(LoginView, self).dispatch(*args, **kwargs)
102 File "/home/topbet/topbet/topbet/server/.venv/lib/python3.7/site-packages/rest_framework/views.py", line 509, in dispatch
103 response = self.handle_exception(exc)
104 File "/home/topbet/topbet/topbet/server/.venv/lib/python3.7/site-packages/rest_framework/views.py", line 469, in handle_exception
105 self.raise_uncaught_exception(exc)
106 File "/home/topbet/topbet/topbet/server/.venv/lib/python3.7/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
107 raise exc
108 File "/home/topbet/topbet/topbet/server/.venv/lib/python3.7/site-packages/rest_framework/views.py", line 506, in dispatch
109 response = handler(request, *args, **kwargs)
110 File "/home/topbet/topbet/topbet/server/apps/staff/views/auth.py", line 95, in post
111 self.serializer.is_valid(raise_exception=True)
112 File "/home/topbet/topbet/topbet/server/.venv/lib/python3.7/site-packages/rest_framework/serializers.py", line 220, in is_valid
113 self._validated_data = self.run_validation(self.initial_data)
114 File "/home/topbet/topbet/topbet/server/.venv/lib/python3.7/site-packages/rest_framework/serializers.py", line 422, in run_validation
115 value = self.validate(value)
116 File "/home/topbet/topbet/topbet/server/apps/staff/serializers/auth.py", line 128, in validate
117 if user.is_active and user.spam_count < 3
118
119Exception Type: AttributeError at /api/v1/auth/login/
120Exception Value: 'NoneType' object has no attribute 'is_active'
121Request information:
122USER: AnonymousUser
123
124GET: No GET data
125
126POST: No POST data
127
128FILES: No FILES data
129
130COOKIES:
131top_bet_cookies_accept = 'true'
132messages = '4ca40a5d6d41ddf12056efffc2be5d85b62d371e$[["__json_message",0,25,"\\u0423\\u0441\\u043f\\u0456\\u0448\\u043d\\u043e \\u0443\\u0432\\u0456\\u0439\\u0448\\u043b\\u0438 \\u044f\\u043a alinapejceva."]]'
133csrftoken = '7kKE1PX4Ur6goRdZ6UVl6XnZtzkbN5r0tsoHLt7iI9gGDj2wLdcGmLV04IJQUAPx'
134
135META:
136CONTENT_LENGTH = '568'
137CONTENT_TYPE = 'application/json;charset=UTF-8'
138CSRF_COOKIE = '7kKE1PX4Ur6goRdZ6UVl6XnZtzkbN5r0tsoHLt7iI9gGDj2wLdcGmLV04IJQUAPx'
139HTTP_ACCEPT = 'application/json, text/plain, */*'
140HTTP_ACCEPT_ENCODING = 'gzip, deflate, br'
141HTTP_ACCEPT_LANGUAGE = 'uk'
142HTTP_CONNECTION = 'close'
143HTTP_COOKIE = 'top_bet_cookies_accept=true; messages="4ca40a5d6d41ddf12056efffc2be5d85b62d371e$[[\\"__json_message\\"\\0540\\05425\\054\\"\\\\u0423\\\\u0441\\\\u043f\\\\u0456\\\\u0448\\\\u043d\\\\u043e \\\\u0443\\\\u0432\\\\u0456\\\\u0439\\\\u0448\\\\u043b\\\\u0438 \\\\u044f\\\\u043a alinapejceva.\\"]]"; csrftoken=7kKE1PX4Ur6goRdZ6UVl6XnZtzkbN5r0tsoHLt7iI9gGDj2wLdcGmLV04IJQUAPx'
144HTTP_HOST = 'mytopbet.com'
145HTTP_ORIGIN = 'https://mytopbet.com'
146HTTP_REFERER = 'https://mytopbet.com/'
147HTTP_SEC_FETCH_DEST = 'empty'
148HTTP_SEC_FETCH_MODE = 'cors'
149HTTP_SEC_FETCH_SITE = 'same-origin'
150HTTP_USER_AGENT = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36'
151HTTP_X_CSRFTOKEN = '7kKE1PX4Ur6goRdZ6UVl6XnZtzkbN5r0tsoHLt7iI9gGDj2wLdcGmLV04IJQUAPx'
152HTTP_X_FORWARDED_FOR = '185.248.130.27'
153HTTP_X_FORWARDED_PROTO = 'https'
154HTTP_X_REQUESTED_WITH = 'XMLHttpRequest'
155PATH_INFO = '/api/v1/auth/login/'
156QUERY_STRING = ''
157RAW_URI = '/api/v1/auth/login/'
158REMOTE_ADDR = ''
159REQUEST_METHOD = 'POST'
160SCRIPT_NAME = ''
161SERVER_NAME = 'mytopbet.com'
162SERVER_PORT = '443'
163SERVER_PROTOCOL = 'HTTP/1.0'
164SERVER_SOFTWARE = 'gunicorn/20.0.4'
165gunicorn.socket = <gevent._socket3.socket at 0x7f7e57a75de0 object, fd=19, family=1, type=1, proto=0>
166wsgi.errors = <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7f7e56b83550>
167wsgi.file_wrapper = ''
168wsgi.input = <gunicorn.http.body.Body object at 0x7f7e56b83ad0>
169wsgi.input_terminated = True
170wsgi.multiprocess = False
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_ADAPTER = 'apps.staff.adapters.AccountAdapter'
180ACCOUNT_AUTHENTICATION_METHOD = 'username'
181ACCOUNT_CONFIRM_EMAIL_ON_GET = True
182ACCOUNT_DEFAULT_HTTP_PROTOCOL = 'https'
183ACCOUNT_EMAIL_REQUIRED = True
184ACCOUNT_EMAIL_VERIFICATION = 'mandatory'
185ACCOUNT_LOGIN_ON_EMAIL_CONFIRMATION = True
186ACCOUNT_LOGIN_ON_PASSWORD_RESET = '********************'
187ACCOUNT_LOGOUT_ON_GET = True
188ACCOUNT_UNIQUE_EMAIL = True
189ACCOUNT_USERNAME_REQUIRED = True
190ADMINS = []
191ALLOWED_HOSTS = ['157.230.103.229', '.topbet.ua', '.mytopbet.com']
192API_RE_PREFIX = '********************'
193APPEND_SLASH = True
194AUTHENTICATION_BACKENDS = "('apps.staff.auth_backends.AuthenticationBackend',)"
195AUTH_PASSWORD_VALIDATORS = '********************'
196AUTH_USER_MODEL = 'staff.CustomUser'
197BASE_DIR = PosixPath('/home/topbet/topbet/topbet/server/app/settings/default.py')
198BASE_ROOT = PosixPath('/home/topbet/topbet/topbet/server/app')
199BASE_URL = 'https://mytopbet.com'
200CACHES = {'default': {'BACKEND': 'django_redis.cache.RedisCache', 'LOCATION': 'redis://127.0.0.1:6379/1'}}
201CACHE_MIDDLEWARE_ALIAS = 'default'
202CACHE_MIDDLEWARE_KEY_PREFIX = '********************'
203CACHE_MIDDLEWARE_SECONDS = 600
204CELERY_ACCEPT_CONTENT = ['json']
205CELERY_BROKER_URL = 'redis://127.0.0.1:6379/0'
206CELERY_RESULT_SERIALIZER = 'json'
207CELERY_TASK_SERIALIZER = 'json'
208CKEDITOR_CONFIGS = {'default': {'skin': 'office2013', 'CKEDITOR_BROWSE_SHOW_DIRS': True, 'toolbar_Basic': [['Source', '-', 'Bold', 'Italic']], 'toolbar_YourCustomToolbarConfig': [{'name': 'document', 'items': ['Source', '-', 'Save', 'NewPage', 'Preview', 'Print', '-', 'Templates']}, {'name': 'clipboard', 'items': ['Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo']}, {'name': 'editing', 'items': ['Find', 'Replace', '-', 'SelectAll']}, {'name': 'forms', 'items': ['Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', 'HiddenField']}, '/', {'name': 'basicstyles', 'items': ['Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'RemoveFormat']}, {'name': 'paragraph', 'items': ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Blockquote', 'CreateDiv', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock', '-', 'BidiLtr', 'BidiRtl', 'Language']}, {'name': 'links', 'items': ['Link', 'Unlink', 'Anchor']}, {'name': 'insert', 'items': ['Image', 'Flash', 'Table', 'HorizontalRule', 'Smiley', 'SpecialChar', 'PageBreak', 'Iframe']}, '/', {'name': 'styles', 'items': ['Styles', 'Format', 'Font', 'FontSize']}, {'name': 'colors', 'items': ['TextColor', 'BGColor']}, {'name': 'tools', 'items': ['Maximize', 'ShowBlocks']}, {'name': 'about', 'items': ['About']}, '/', {'name': 'yourcustomtools', 'items': ['Preview', 'Maximize']}], 'toolbar': 'YourCustomToolbarConfig', 'tabSpaces': 4, 'extraPlugins': 'uploadimage,div,autolink,autoembed,embedsemantic,widget,lineutils,clipboard,dialog,dialogui,elementspath,uploadwidget', 'allowedContent': True, 'forcePasteAsPlainText': True}}
209CKEDITOR_UPLOAD_PATH = ''
210CRUMBS_HOME_URL_NAME = 'pages:index'
211CSRF_COOKIE_AGE = 31449600
212CSRF_COOKIE_DOMAIN = '.mytopbet.com'
213CSRF_COOKIE_HTTPONLY = False
214CSRF_COOKIE_NAME = 'csrftoken'
215CSRF_COOKIE_PATH = '/'
216CSRF_COOKIE_SAMESITE = 'Lax'
217CSRF_COOKIE_SECURE = True
218CSRF_FAILURE_VIEW = 'django.views.csrf.csrf_failure'
219CSRF_HEADER_NAME = 'HTTP_X_CSRFTOKEN'
220CSRF_TRUSTED_ORIGINS = []
221CSRF_USE_SESSIONS = False
222DATABASES = {'default': {'NAME': 'topbet_db', 'USER': 'topbet_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}}}
223DATABASE_ROUTERS = []
224DATA_UPLOAD_MAX_MEMORY_SIZE = 2621440
225DATA_UPLOAD_MAX_NUMBER_FIELDS = 1000
226DATETIME_FORMAT = '%d.%m.%Y, %H:%M:%S'
227DATETIME_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']
228DATE_FORMAT = '%d.%m.%Y'
229DATE_INPUT_FORMATS = ['%d.%m.%Y', '%d.%m.%y', '%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']
230DEBUG = 'True'
231DEBUG_PROPAGATE_EXCEPTIONS = False
232DEBUG_TOOLBAR_CONFIG = {'SHOW_COLLAPSED': True, 'SHOW_TOOLBAR_CALLBACK': <function <lambda> at 0x7f7e6469e0e0>}
233DECIMAL_SEPARATOR = '.'
234DEFAULT_CHARSET = 'utf-8'
235DEFAULT_EXCEPTION_REPORTER_FILTER = 'django.views.debug.SafeExceptionReporterFilter'
236DEFAULT_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']
237DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage'
238DEFAULT_FROM_EMAIL = 'admin@admin.admin'
239DEFAULT_INDEX_TABLESPACE = ''
240DEFAULT_TABLESPACE = ''
241DISALLOWED_USER_AGENTS = []
242DRF_RECAPTCHA_PUBLIC_KEY = '********************'
243DRF_RECAPTCHA_SECRET_KEY = '********************'
244DRF_RECAPTCHA_VERIFY_ENDPOINT = 'https://www.google.com/recaptcha/api/siteverify'
245EMAIL_BACKEND = 'des.backends.ConfiguredEmailBackend'
246EMAIL_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'}
247EMAIL_FILE_PATH = ''
248EMAIL_HOST = '127.0.0.1'
249EMAIL_HOST_PASSWORD = '********************'
250EMAIL_HOST_USER = None
251EMAIL_PORT = None
252EMAIL_SSL_CERTFILE = None
253EMAIL_SSL_KEYFILE = '********************'
254EMAIL_SUBJECT_PREFIX = '[Django] '
255EMAIL_TIMEOUT = None
256EMAIL_USE_LOCALTIME = False
257EMAIL_USE_SSL = False
258EMAIL_USE_TLS = False
259FILE_CHARSET = 'utf-8'
260FILE_UPLOAD_DIRECTORY_PERMISSIONS = None
261FILE_UPLOAD_HANDLERS = ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler']
262FILE_UPLOAD_MAX_MEMORY_SIZE = 2621440
263FILE_UPLOAD_PERMISSIONS = 420
264FILE_UPLOAD_TEMP_DIR = None
265FIRST_DAY_OF_WEEK = 0
266FIXTURE_DIRS = []
267FORCE_SCRIPT_NAME = None
268FORMAT_MODULE_PATH = None
269FORM_RENDERER = 'django.forms.renderers.DjangoTemplates'
270IGNORABLE_404_URLS = []
271INSTALLED_APPS = ['markup', 'shared', 'apps.academy', 'apps.adds', 'apps.bots', 'apps.bookmakers', 'apps.chat', 'apps.common', 'apps.faq', 'apps.forecasts', 'apps.handling', 'apps.messengers', 'apps.organization', 'apps.pages', 'apps.payments', 'apps.security', 'apps.staff', 'apps.stats', 'admin_auto_filters', 'adminsortable2', 'ckeditor', 'ckeditor_uploader', 'des', 'django_filters', 'django_jinja', 'jet', 'modeltranslation', 'parler', 'postie', 'rest_framework', 'rest_framework.authtoken', 'rest_framework_recaptcha', 'robots', 'rosetta', 'script_pattern', 'seo', 'solo', 'standards', 'subdomains', 'vuejs_translate', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'qsessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.sites', 'allauth', 'allauth.account', 'allauth.socialaccount', 'allauth.socialaccount.providers.google', 'allauth.socialaccount.providers.facebook', 'allauth.socialaccount.providers.twitter', 'rest_auth', 'rest_auth.registration', 'django_otp', 'django_otp.plugins.otp_totp', 'django_otp.plugins.otp_email']
272INTERNAL_IPS = []
273JET_SIDE_MENU_COMPACT = True
274LANGUAGES = "(('uk', 'Ukrainian'), ('ru', 'Russian'), ('en', 'English'))"
275LANGUAGES_BIDI = ['he', 'ar', 'fa', 'ur']
276LANGUAGE_CODE = 'uk'
277LANGUAGE_COOKIE_AGE = None
278LANGUAGE_COOKIE_DOMAIN = None
279LANGUAGE_COOKIE_HTTPONLY = False
280LANGUAGE_COOKIE_NAME = 'django_language'
281LANGUAGE_COOKIE_PATH = '/'
282LANGUAGE_COOKIE_SAMESITE = None
283LANGUAGE_COOKIE_SECURE = False
284LOCALE_PATHS = "(PosixPath('/home/topbet/topbet/topbet/server/app/locale'),)"
285LOGGING = {'version': 1, 'disable_existing_loggers': False, 'handlers': {'console': {'level': 'DEBUG', 'class': 'logging.StreamHandler'}, 'logfile': {'level': 'DEBUG', 'class': 'logging.FileHandler', 'filename': PosixPath('/home/topbet/topbet/topbet/server/app/settings/default.py/../logfile.log')}}, 'root': {'level': 'INFO', 'handlers': ['console', 'logfile']}}
286LOGGING_CONFIG = 'logging.config.dictConfig'
287LOGIN_REDIRECT_URL = '/auth/login/'
288LOGIN_URL = '/#auth'
289LOGOUT_REDIRECT_URL = None
290MANAGERS = []
291MEDIA_ROOT = PosixPath('/home/topbet/topbet/topbet/server/app/uploads')
292MEDIA_URL = '/uploads/'
293MESSAGE_CONFIGS = {'telegram': {'events': {'new_forecast__user': {'domain': 'Домен'}}}}
294MESSAGE_EVENTS = Choices(('new_forecast__user', 'new_forecast__user', 'Новий прогноз (користувач)'))
295MESSAGE_HTML_ADMIN_WIDGETS = {'ckeditor': {'widget': 'CKEditorUploadingWidget', 'widget_module': 'ckeditor_uploader.widgets', 'attrs': {}}}
296MESSAGE_SECTIONS = Choices(('telegram', 'telegram', 'Telegram'))
297MESSAGE_STORAGE = 'django.contrib.messages.storage.fallback.FallbackStorage'
298MIDDLEWARE = ['django.middleware.security.SecurityMiddleware', 'qsessions.middleware.SessionMiddleware', 'subdomains.middleware.SubdomainMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.middleware.locale.LocaleMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django_otp.middleware.OTPMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'seo.middleware.url_seo_middleware', 'apps.staff.middlewares.SubdomainUserMiddleware']
299MIGRATION_MODULES = {}
300MONTH_DAY_FORMAT = 'F j'
301NUMBER_GROUPING = 0
302OLD_PASSWORD_FIELD_ENABLED = '********************'
303PARLER_DEFAULT_LANGUAGE_CODE = 'uk'
304PARLER_LANGUAGES = {1: ({'code': 'uk', 'fallbacks': ['uk'], 'hide_untranslated': False}, {'code': 'en', 'fallbacks': ['uk'], 'hide_untranslated': False}, {'code': 'ru', 'fallbacks': ['uk'], 'hide_untranslated': False}), 'default': {'fallbacks': ['uk'], 'hide_untranslated': False, 'code': 'uk'}}
305PASSWORD_HASHERS = '********************'
306PASSWORD_RESET_TIMEOUT_DAYS = '********************'
307POSTIE_HTML_ADMIN_WIDGET = {'widget': 'CKEditorUploadingWidget', 'widget_module': 'ckeditor_uploader.widgets', 'attrs': {}}
308POSTIE_INSTANT_SEND = False
309POSTIE_TEMPLATE_CHOICES = Choices(('confirm_email__user', 'confirm_email__user', 'Підтвердити електронну адресу (користувач)'), ('password_reset_confirm__user', 'password_reset_confirm__user', 'Підтвердити скидання пароля (користувач)'), ('otp_email__user', 'otp_email__user', 'Електронна адреса OTP (користувач)'), ('question_handling__admin', 'question_handling__admin', 'Обробка питань (адміністратор)'), ('question_handling_answer__user', 'question_handling_answer__user', 'Відповідь на питання (користувач)'), ('payout_created__admin', 'payout_created__admin', 'Виплата створена (адміністратор)'), ('payout_confirmed__user', 'payout_confirmed__user', 'Виплата підтверджена (користувач)'), ('payout_rejected__user', 'payout_rejected__user', 'Виплата відхилена (користувач)'), ('subscription_payment_fail__user', 'subscription_payment_fail__user', 'Помилка оплати передплати (користувач)'), ('subscription_payment_success__user', 'subscription_payment_success__user', 'Успіх оплати підписки (користувач)'), ('notify_payment_fail__user', 'notify_payment_fail__user', 'Не вдалося повідомити про платіж (користувач)'), ('notify_payment_success__user', 'notify_payment_success__user', 'Повідомлення про успішне здійснення платежу (користувач)'), ('new_forecast__user', 'new_forecast__user', 'Новий прогноз (користувач)'))
310POSTIE_TEMPLATE_CONTEXTS = {'confirm_email__user': {'login': 'Увійти', 'name': "Ім'я", 'link': 'Посилання на підтвердження'}, 'password_reset_confirm__user': '********************', 'otp_email__user': {'token': '********************'}, 'question_handling__admin': {'name': "Ім'я", 'email': 'Email ', 'question': 'Питання', 'link': 'Посилання'}, 'question_handling_answer__user': {'name': "Ім'я", 'email': 'Email ', 'question': 'Питання', 'answer': 'Відповідь'}, 'payout_created__admin': {'fio': 'ПІБ', 'amount': 'Сума', 'link': 'Посилання'}, 'payout_confirmed__user': {'fio': 'ПІБ', 'amount': 'Сума', 'comment': 'Прокоментуйте'}, 'payout_rejected__user': {'fio': 'ПІБ', 'amount': 'Сума', 'comment': 'Прокоментуйте'}, 'subscription_payment_fail__user': {'amount': 'Сума', 'domain': 'Домен', 'name': "Ім'я"}, 'subscription_payment_success__user': {'amount': 'Сума', 'domain': 'Домен', 'name': "Ім'я"}, 'notify_payment_fail__user': {'amount': 'Сума', 'name': "Ім'я"}, 'notify_payment_success__user': {'amount': 'Сума', 'name': "Ім'я"}, 'new_forecast__user': {'domain': 'Домен'}}
311PREPEND_WWW = False
312PROJECT_APPS = ['markup', 'shared', 'apps.academy', 'apps.adds', 'apps.bots', 'apps.bookmakers', 'apps.chat', 'apps.common', 'apps.faq', 'apps.forecasts', 'apps.handling', 'apps.messengers', 'apps.organization', 'apps.pages', 'apps.payments', 'apps.security', 'apps.staff', 'apps.stats']
313REST_FRAMEWORK = {'DATE_FORMAT': 'iso-8601', 'TIME_FORMAT': 'iso-8601', 'DATETIME_FORMAT': 'iso-8601', 'DATE_INPUT_FORMATS': ['iso-8601'], 'TIME_INPUT_FORMATS': ['iso-8601'], 'DATETIME_INPUT_FORMATS': ['iso-8601'], 'DEFAULT_FILTER_BACKENDS': ['django_filters.rest_framework.DjangoFilterBackend'], 'DEFAULT_METADATA_CLASS': 'standards.drf.metadata.FieldsetMetadata', 'DEFAULT_PARSER_CLASSES': ('djangorestframework_camel_case.parser.CamelCaseFormParser', 'djangorestframework_camel_case.parser.CamelCaseMultiPartParser', 'djangorestframework_camel_case.parser.CamelCaseJSONParser'), 'DEFAULT_RENDERER_CLASSES': ('standards.drf.renderers.CamelCaseORJSONRenderer', 'djangorestframework_camel_case.render.CamelCaseBrowsableAPIRenderer'), 'EXCEPTION_HANDLER': 'standards.drf.handlers.exception_handler', 'SEARCH_PARAM': 's'}
314ROOT_URLCONF = 'app.urls'
315ROSETTA_SHOW_AT_ADMIN_PANEL = True
316SECRET_KEY = '********************'
317SECURE_BROWSER_XSS_FILTER = False
318SECURE_CONTENT_TYPE_NOSNIFF = True
319SECURE_HSTS_INCLUDE_SUBDOMAINS = False
320SECURE_HSTS_PRELOAD = False
321SECURE_HSTS_SECONDS = 0
322SECURE_PROXY_SSL_HEADER = "('HTTP_X_FORWARDED_PROTO', 'https')"
323SECURE_REDIRECT_EXEMPT = []
324SECURE_REFERRER_POLICY = None
325SECURE_SSL_HOST = None
326SECURE_SSL_REDIRECT = False
327SENDPULSE_EMAIL_FROMEMAIL = 'info@topbet.ua'
328SENDPULSE_EMAIL_HOST = 'smtp-pulse.com'
329SENDPULSE_EMAIL_PASSWORD = '********************'
330SENDPULSE_EMAIL_PORT = 465
331SENDPULSE_EMAIL_USERNAME = 'topbet.sendpulse@gmail.com'
332SENDPULSE_EMAIL_USE_SSL = True
333SENDPULSE_EMAIL_USE_TLS = False
334SEO_HTML_ADMIN_WIDGET = {'widget': 'CKEditorUploadingWidget', 'widget_path': 'ckeditor_uploader.widgets'}
335SEO_MODELS = []
336SEO_USE_URL_FULL_PATH = True
337SEO_USE_URL_SEO = True
338SERVER_EMAIL = 'root@localhost'
339SESSION_CACHE_ALIAS = 'default'
340SESSION_COOKIE_AGE = 1209600
341SESSION_COOKIE_DOMAIN = '.mytopbet.com'
342SESSION_COOKIE_HTTPONLY = True
343SESSION_COOKIE_NAME = 'sessionid'
344SESSION_COOKIE_PATH = '/'
345SESSION_COOKIE_SAMESITE = 'Lax'
346SESSION_COOKIE_SECURE = True
347SESSION_ENGINE = 'qsessions.backends.cached_db'
348SESSION_EXPIRE_AT_BROWSER_CLOSE = False
349SESSION_FILE_PATH = None
350SESSION_SAVE_EVERY_REQUEST = False
351SESSION_SERIALIZER = 'django.contrib.sessions.serializers.JSONSerializer'
352SETTINGS_MODULE = 'app.settings'
353SHORT_DATETIME_FORMAT = 'm/d/Y P'
354SHORT_DATE_FORMAT = 'm/d/Y'
355SIGNING_BACKEND = 'django.core.signing.TimestampSigner'
356SILENCED_SYSTEM_CHECKS = []
357SITE_ID = 1
358SOCIALACCOUNT_ADAPTER = 'apps.staff.adapters.SocialAccountAdapter'
359SOCIALACCOUNT_AUTO_SIGNUP = True
360SOCIALACCOUNT_EMAIL_REQUIRED = False
361SOCIALACCOUNT_EMAIL_VERIFICATION = False
362SOCIALACCOUNT_PROVIDERS = {'google': {'SCOPE': ['profile', 'email'], 'AUTH_PARAMS': {'access_type': 'online'}}, 'facebook': {'METHOD': 'oauth2', 'SCOPE': ['email', 'public_profile'], 'AUTH_PARAMS': {}, 'FIELDS': ['id', 'email', 'name', 'first_name', 'last_name', 'verified', 'picture'], 'EXCHANGE_TOKEN': '********************', 'VERIFIED_EMAIL': True, 'VERSION': 'v8.0'}, 'twitter': {}}
363SOCIALACCOUNT_QUERY_EMAIL = False
364STATICFILES_DIRS = []
365STATICFILES_FINDERS = ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder']
366STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage'
367STATIC_ROOT = PosixPath('/home/topbet/topbet/topbet/server/app/static')
368STATIC_URL = '/static/'
369SUBDOMAIN_URLCONFS = {}
370TEMPLATES = [{'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'], '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']}}]
371TEST_NON_SERIALIZED_APPS = []
372TEST_RUNNER = 'django.test.runner.DiscoverRunner'
373THOUSAND_SEPARATOR = ','
374TIME_FORMAT = 'P'
375TIME_INPUT_FORMATS = ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M']
376TIME_ZONE = 'Europe/Kiev'
377USE_I18N = True
378USE_L10N = True
379USE_THOUSAND_SEPARATOR = False
380USE_TZ = True
381USE_X_FORWARDED_HOST = False
382USE_X_FORWARDED_PORT = False
383WSGI_APPLICATION = 'app.wsgi.application'
384X_FRAME_OPTIONS = 'SAMEORIGIN'
385YEAR_MONTH_FORMAT = 'F Y'
386
387
388You're seeing this error because you have DEBUG = True in your
389Django settings file. Change that to False, and Django will
390display a standard page generated by the handler for this status code.
391