· 4 years ago · Dec 24, 2020, 03:30 PM
1AttributeError at /api/v1/bookmakers/review/list/top/
2'NoneType' object has no attribute 'is_authenticated'
3
4Request Method: GET
5Request URL: http://topbet.ua/api/v1/bookmakers/review/list/top/
6Django Version: 3.0.10
7Python Executable: /home/topbet/topbet/topbet/server/.venv/bin/python3.7
8Python Version: 3.7.3
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: Чт, 24 Гру 2020 17:22:37 +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/rest_framework/views.py", line 509, in dispatch
97 response = self.handle_exception(exc)
98 File "/home/topbet/topbet/topbet/server/.venv/lib/python3.7/site-packages/rest_framework/views.py", line 469, in handle_exception
99 self.raise_uncaught_exception(exc)
100 File "/home/topbet/topbet/topbet/server/.venv/lib/python3.7/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
101 raise exc
102 File "/home/topbet/topbet/topbet/server/.venv/lib/python3.7/site-packages/rest_framework/views.py", line 506, in dispatch
103 response = handler(request, *args, **kwargs)
104 File "/home/topbet/topbet/topbet/server/.venv/lib/python3.7/site-packages/rest_framework/generics.py", line 199, in get
105 return self.list(request, *args, **kwargs)
106 File "/home/topbet/topbet/topbet/server/.venv/lib/python3.7/site-packages/rest_framework/mixins.py", line 46, in list
107 return Response(serializer.data)
108 File "/home/topbet/topbet/topbet/server/.venv/lib/python3.7/site-packages/rest_framework/serializers.py", line 745, in data
109 ret = super().data
110 File "/home/topbet/topbet/topbet/server/.venv/lib/python3.7/site-packages/rest_framework/serializers.py", line 246, in data
111 self._data = self.to_representation(self.instance)
112 File "/home/topbet/topbet/topbet/server/.venv/lib/python3.7/site-packages/rest_framework/serializers.py", line 664, in to_representation
113 self.child.to_representation(item) for item in iterable
114 File "/home/topbet/topbet/topbet/server/.venv/lib/python3.7/site-packages/rest_framework/serializers.py", line 664, in <listcomp>
115 self.child.to_representation(item) for item in iterable
116 File "/home/topbet/topbet/topbet/server/.venv/lib/python3.7/site-packages/rest_framework/serializers.py", line 515, in to_representation
117 ret[field.field_name] = field.to_representation(attribute)
118 File "/home/topbet/topbet/topbet/server/apps/staff/serializers/tipsters.py", line 247, in to_representation
119 if self.user.is_authenticated:
120
121Exception Type: AttributeError at /api/v1/bookmakers/review/list/top/
122Exception Value: 'NoneType' object has no attribute 'is_authenticated'
123Request information:
124USER: niknametestqwe ( )
125
126GET: No GET data
127
128POST: No POST data
129
130FILES: No FILES data
131
132COOKIES:
133top_bet_cookies_accept = 'true'
134messages = 'f538aa556b17112d3c33f86652d86e4b4ffce559$[["__json_message",0,20,"E-mail \\u043f\\u0456\\u0434\\u0442\\u0432\\u0435\\u0440\\u0434\\u0436\\u0435\\u043d\\u043d\\u044f \\u043d\\u0430\\u0434\\u0456\\u0441\\u043b\\u0430\\u043d\\u043e \\u043d\\u0430 gocar12815@chatdays.com."],["__json_message",0,20,"E-mail \\u043f\\u0456\\u0434\\u0442\\u0432\\u0435\\u0440\\u0434\\u0436\\u0435\\u043d\\u043d\\u044f \\u043d\\u0430\\u0434\\u0456\\u0441\\u043b\\u0430\\u043d\\u043e \\u043d\\u0430 gitiwir567@chatdays.com."]]'
135csrftoken = 'K4UD0bYkKvVbQKuAIjAIXiZ0CCzFWyTSkDBqFzhavC8udcrXZP7uU7QRhFzoUvIY'
136sessionid = 'wrojeyvach02hggjxhllsrr867l9dvkc'
137
138META:
139CSRF_COOKIE = 'K4UD0bYkKvVbQKuAIjAIXiZ0CCzFWyTSkDBqFzhavC8udcrXZP7uU7QRhFzoUvIY'
140HTTP_ACCEPT = 'application/json, text/plain, */*'
141HTTP_ACCEPT_ENCODING = 'gzip, deflate'
142HTTP_ACCEPT_LANGUAGE = 'undefined'
143HTTP_CACHE_CONTROL = 'no-cache'
144HTTP_CONNECTION = 'close'
145HTTP_COOKIE = 'top_bet_cookies_accept=true; messages="f538aa556b17112d3c33f86652d86e4b4ffce559$[[\\"__json_message\\"\\0540\\05420\\054\\"E-mail \\\\u043f\\\\u0456\\\\u0434\\\\u0442\\\\u0432\\\\u0435\\\\u0440\\\\u0434\\\\u0436\\\\u0435\\\\u043d\\\\u043d\\\\u044f \\\\u043d\\\\u0430\\\\u0434\\\\u0456\\\\u0441\\\\u043b\\\\u0430\\\\u043d\\\\u043e \\\\u043d\\\\u0430 gocar12815@chatdays.com.\\"]\\054[\\"__json_message\\"\\0540\\05420\\054\\"E-mail \\\\u043f\\\\u0456\\\\u0434\\\\u0442\\\\u0432\\\\u0435\\\\u0440\\\\u0434\\\\u0436\\\\u0435\\\\u043d\\\\u043d\\\\u044f \\\\u043d\\\\u0430\\\\u0434\\\\u0456\\\\u0441\\\\u043b\\\\u0430\\\\u043d\\\\u043e \\\\u043d\\\\u0430 gitiwir567@chatdays.com.\\"]]"; csrftoken=K4UD0bYkKvVbQKuAIjAIXiZ0CCzFWyTSkDBqFzhavC8udcrXZP7uU7QRhFzoUvIY; sessionid=wrojeyvach02hggjxhllsrr867l9dvkc'
146HTTP_HOST = 'topbet.ua'
147HTTP_PRAGMA = 'no-cache'
148HTTP_REFERER = 'http://topbet.ua/academy/rybatekst-ispolzuetsya-dizajnerami-test/'
149HTTP_USER_AGENT = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36'
150HTTP_X_CSRFTOKEN = 'K4UD0bYkKvVbQKuAIjAIXiZ0CCzFWyTSkDBqFzhavC8udcrXZP7uU7QRhFzoUvIY'
151HTTP_X_FORWARDED_FOR = '185.248.130.27'
152HTTP_X_FORWARDED_PROTO = 'http'
153HTTP_X_REQUESTED_WITH = 'XMLHttpRequest'
154PATH_INFO = '/api/v1/bookmakers/review/list/top/'
155QUERY_STRING = ''
156RAW_URI = '/api/v1/bookmakers/review/list/top/'
157REMOTE_ADDR = ''
158REQUEST_METHOD = 'GET'
159SCRIPT_NAME = ''
160SERVER_NAME = 'topbet.ua'
161SERVER_PORT = '80'
162SERVER_PROTOCOL = 'HTTP/1.0'
163SERVER_SOFTWARE = 'gunicorn/20.0.4'
164gunicorn.socket = <gevent._socket3.socket at 0x7fe7a6af4868 object, fd=18, family=1, type=1, proto=0>
165wsgi.errors = <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7fe7a654add8>
166wsgi.file_wrapper = ''
167wsgi.input = <gunicorn.http.body.Body object at 0x7fe7a77e2f98>
168wsgi.input_terminated = True
169wsgi.multiprocess = False
170wsgi.multithread = True
171wsgi.run_once = False
172wsgi.url_scheme = 'http'
173wsgi.version = '(1, 0)'
174
175Settings:
176Using settings module app.settings
177ABSOLUTE_URL_OVERRIDES = {}
178ACCOUNT_ADAPTER = 'apps.staff.adapters.AccountAdapter'
179ACCOUNT_AUTHENTICATION_METHOD = 'username'
180ACCOUNT_CONFIRM_EMAIL_ON_GET = True
181ACCOUNT_DEFAULT_HTTP_PROTOCOL = 'https'
182ACCOUNT_EMAIL_REQUIRED = True
183ACCOUNT_EMAIL_VERIFICATION = 'mandatory'
184ACCOUNT_LOGIN_ON_EMAIL_CONFIRMATION = True
185ACCOUNT_LOGIN_ON_PASSWORD_RESET = '********************'
186ACCOUNT_LOGOUT_ON_GET = True
187ACCOUNT_UNIQUE_EMAIL = True
188ACCOUNT_USERNAME_REQUIRED = True
189ADMINS = []
190ALLOWED_HOSTS = ['157.230.103.229', '.topbet.ua']
191API_RE_PREFIX = '********************'
192APPEND_SLASH = True
193AUTHENTICATION_BACKENDS = "('apps.staff.auth_backends.AuthenticationBackend',)"
194AUTH_PASSWORD_VALIDATORS = '********************'
195AUTH_USER_MODEL = 'staff.CustomUser'
196BASE_DIR = PosixPath('/home/topbet/topbet/topbet/server/app/settings/default.py')
197BASE_ROOT = PosixPath('/home/topbet/topbet/topbet/server/app')
198BASE_URL = 'https://topbet.ua'
199CACHES = {'default': {'BACKEND': 'django_redis.cache.RedisCache', 'LOCATION': 'redis://127.0.0.1:6379/1'}}
200CACHE_MIDDLEWARE_ALIAS = 'default'
201CACHE_MIDDLEWARE_KEY_PREFIX = '********************'
202CACHE_MIDDLEWARE_SECONDS = 600
203CELERY_ACCEPT_CONTENT = ['json']
204CELERY_BROKER_URL = 'redis://127.0.0.1:6379/0'
205CELERY_RESULT_SERIALIZER = 'json'
206CELERY_TASK_SERIALIZER = 'json'
207CKEDITOR_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'}}
208CKEDITOR_UPLOAD_PATH = ''
209CRUMBS_HOME_URL_NAME = 'pages:index'
210CSRF_COOKIE_AGE = 31449600
211CSRF_COOKIE_DOMAIN = '.topbet.ua'
212CSRF_COOKIE_HTTPONLY = False
213CSRF_COOKIE_NAME = 'csrftoken'
214CSRF_COOKIE_PATH = '/'
215CSRF_COOKIE_SAMESITE = 'Lax'
216CSRF_COOKIE_SECURE = False
217CSRF_FAILURE_VIEW = 'django.views.csrf.csrf_failure'
218CSRF_HEADER_NAME = 'HTTP_X_CSRFTOKEN'
219CSRF_TRUSTED_ORIGINS = []
220CSRF_USE_SESSIONS = False
221DATABASES = {'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}}}
222DATABASE_ROUTERS = []
223DATA_UPLOAD_MAX_MEMORY_SIZE = 2621440
224DATA_UPLOAD_MAX_NUMBER_FIELDS = 1000
225DATETIME_FORMAT = '%d.%m.%Y, %H:%M:%S'
226DATETIME_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']
227DATE_FORMAT = '%d.%m.%Y'
228DATE_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']
229DEBUG = 'True'
230DEBUG_PROPAGATE_EXCEPTIONS = False
231DEBUG_TOOLBAR_CONFIG = {'SHOW_COLLAPSED': True, 'SHOW_TOOLBAR_CALLBACK': <function <lambda> at 0x7fe7b3706400>}
232DECIMAL_SEPARATOR = '.'
233DEFAULT_CHARSET = 'utf-8'
234DEFAULT_EXCEPTION_REPORTER_FILTER = 'django.views.debug.SafeExceptionReporterFilter'
235DEFAULT_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']
236DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage'
237DEFAULT_FROM_EMAIL = 'admin@admin.admin'
238DEFAULT_INDEX_TABLESPACE = ''
239DEFAULT_TABLESPACE = ''
240DISALLOWED_USER_AGENTS = []
241DRF_RECAPTCHA_PUBLIC_KEY = '********************'
242DRF_RECAPTCHA_SECRET_KEY = '********************'
243DRF_RECAPTCHA_VERIFY_ENDPOINT = 'https://www.google.com/recaptcha/api/siteverify'
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 = 420
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', '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']
271INTERNAL_IPS = []
272JET_SIDE_MENU_COMPACT = True
273LANGUAGES = "(('uk', 'Ukrainian'), ('ru', 'Russian'), ('en', 'English'))"
274LANGUAGES_BIDI = ['he', 'ar', 'fa', 'ur']
275LANGUAGE_CODE = 'uk'
276LANGUAGE_COOKIE_AGE = None
277LANGUAGE_COOKIE_DOMAIN = None
278LANGUAGE_COOKIE_HTTPONLY = False
279LANGUAGE_COOKIE_NAME = 'django_language'
280LANGUAGE_COOKIE_PATH = '/'
281LANGUAGE_COOKIE_SAMESITE = None
282LANGUAGE_COOKIE_SECURE = False
283LOCALE_PATHS = "(PosixPath('/home/topbet/topbet/topbet/server/app/locale'),)"
284LOGGING = {'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']}}
285LOGGING_CONFIG = 'logging.config.dictConfig'
286LOGIN_REDIRECT_URL = '/auth/login/'
287LOGIN_URL = '/#auth'
288LOGOUT_REDIRECT_URL = None
289MANAGERS = []
290MEDIA_ROOT = PosixPath('/home/topbet/topbet/topbet/server/app/uploads')
291MEDIA_URL = '/uploads/'
292MESSAGE_CONFIGS = {'telegram': {'events': {'new_forecast__user': {'domain': 'Домен'}}}}
293MESSAGE_EVENTS = Choices(('new_forecast__user', 'new_forecast__user', 'Новий прогноз (користувач)'))
294MESSAGE_HTML_ADMIN_WIDGETS = {'ckeditor': {'widget': 'CKEditorUploadingWidget', 'widget_module': 'ckeditor_uploader.widgets', 'attrs': {}}}
295MESSAGE_SECTIONS = Choices(('telegram', 'telegram', 'Telegram'))
296MESSAGE_STORAGE = 'django.contrib.messages.storage.fallback.FallbackStorage'
297MIDDLEWARE = ['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']
298MIGRATION_MODULES = {}
299MONTH_DAY_FORMAT = 'F j'
300NUMBER_GROUPING = 0
301OLD_PASSWORD_FIELD_ENABLED = '********************'
302PARLER_DEFAULT_LANGUAGE_CODE = 'uk'
303PARLER_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'}}
304PASSWORD_HASHERS = '********************'
305PASSWORD_RESET_TIMEOUT_DAYS = '********************'
306POSTIE_HTML_ADMIN_WIDGET = {'widget': 'CKEditorUploadingWidget', 'widget_module': 'ckeditor_uploader.widgets', 'attrs': {}}
307POSTIE_INSTANT_SEND = False
308POSTIE_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', 'Новий прогноз (користувач)'))
309POSTIE_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': 'Домен'}}
310PREPEND_WWW = False
311PROJECT_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']
312REST_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'}
313ROOT_URLCONF = 'app.urls'
314ROSETTA_SHOW_AT_ADMIN_PANEL = True
315SECRET_KEY = '********************'
316SECURE_BROWSER_XSS_FILTER = False
317SECURE_CONTENT_TYPE_NOSNIFF = True
318SECURE_HSTS_INCLUDE_SUBDOMAINS = False
319SECURE_HSTS_PRELOAD = False
320SECURE_HSTS_SECONDS = 0
321SECURE_PROXY_SSL_HEADER = None
322SECURE_REDIRECT_EXEMPT = []
323SECURE_REFERRER_POLICY = None
324SECURE_SSL_HOST = None
325SECURE_SSL_REDIRECT = False
326SENDPULSE_EMAIL_FROMEMAIL = 'info@topbet.ua'
327SENDPULSE_EMAIL_HOST = 'smtp-pulse.com'
328SENDPULSE_EMAIL_PASSWORD = '********************'
329SENDPULSE_EMAIL_PORT = 465
330SENDPULSE_EMAIL_USERNAME = 'topbet.sendpulse@gmail.com'
331SENDPULSE_EMAIL_USE_SSL = True
332SENDPULSE_EMAIL_USE_TLS = False
333SEO_HTML_ADMIN_WIDGET = {'widget': 'CKEditorUploadingWidget', 'widget_path': 'ckeditor_uploader.widgets'}
334SEO_MODELS = []
335SEO_USE_URL_FULL_PATH = True
336SEO_USE_URL_SEO = True
337SERVER_EMAIL = 'root@localhost'
338SESSION_CACHE_ALIAS = 'default'
339SESSION_COOKIE_AGE = 1209600
340SESSION_COOKIE_DOMAIN = '.topbet.ua'
341SESSION_COOKIE_HTTPONLY = True
342SESSION_COOKIE_NAME = 'sessionid'
343SESSION_COOKIE_PATH = '/'
344SESSION_COOKIE_SAMESITE = 'Lax'
345SESSION_COOKIE_SECURE = False
346SESSION_ENGINE = 'qsessions.backends.cached_db'
347SESSION_EXPIRE_AT_BROWSER_CLOSE = False
348SESSION_FILE_PATH = None
349SESSION_SAVE_EVERY_REQUEST = False
350SESSION_SERIALIZER = 'django.contrib.sessions.serializers.JSONSerializer'
351SETTINGS_MODULE = 'app.settings'
352SHORT_DATETIME_FORMAT = 'm/d/Y P'
353SHORT_DATE_FORMAT = 'm/d/Y'
354SIGNING_BACKEND = 'django.core.signing.TimestampSigner'
355SILENCED_SYSTEM_CHECKS = []
356SITE_ID = 1
357SOCIALACCOUNT_ADAPTER = 'apps.staff.adapters.SocialAccountAdapter'
358SOCIALACCOUNT_EMAIL_VERIFICATION = False
359SOCIALACCOUNT_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'}}
360STATICFILES_DIRS = []
361STATICFILES_FINDERS = ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder']
362STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage'
363STATIC_ROOT = PosixPath('/home/topbet/topbet/topbet/server/app/static')
364STATIC_URL = '/static/'
365SUBDOMAIN_URLCONFS = {}
366TEMPLATES = [{'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']}}]
367TEST_NON_SERIALIZED_APPS = []
368TEST_RUNNER = 'django.test.runner.DiscoverRunner'
369THOUSAND_SEPARATOR = ','
370TIME_FORMAT = 'P'
371TIME_INPUT_FORMATS = ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M']
372TIME_ZONE = 'Europe/Kiev'
373USE_I18N = True
374USE_L10N = True
375USE_THOUSAND_SEPARATOR = False
376USE_TZ = True
377USE_X_FORWARDED_HOST = False
378USE_X_FORWARDED_PORT = False
379WSGI_APPLICATION = 'app.wsgi.application'
380X_FRAME_OPTIONS = 'SAMEORIGIN'
381YEAR_MONTH_FORMAT = 'F Y'
382
383
384You're seeing this error because you have DEBUG = True in your
385Django settings file. Change that to False, and Django will
386display a standard page generated by the handler for this status code.
387