· 4 years ago · Nov 04, 2020, 08:38 AM
1IntegrityError at /api/v1/tipster/subscribe/paid/sdfsdf/
2null value in column "active_to" violates not-null constraint
3DETAIL: Failing row contains (14, 2020-11-04 08:30:50.222001+00, null, t, null, null, f, f, t).
4
5
6Request Method: PATCH
7Request URL: https://topbet.ua/api/v1/tipster/subscribe/paid/sdfsdf/
8Django Version: 3.0.10
9Python Executable: /home/topbet/topbet/topbet/server/.venv/bin/python3.7
10Python Version: 3.7.3
11Python Path: ['/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']
12Server time: Ср, 4 Лис 2020 10:30:50 +0200
13Installed Applications:
14['markup',
15 'shared',
16 'apps.academy',
17 'apps.adds',
18 'apps.bots',
19 'apps.bookmakers',
20 'apps.chat',
21 'apps.common',
22 'apps.faq',
23 'apps.forecasts',
24 'apps.handling',
25 'apps.messengers',
26 'apps.organization',
27 'apps.pages',
28 'apps.payments',
29 'apps.security',
30 'apps.staff',
31 'apps.stats',
32 'admin_auto_filters',
33 'adminsortable2',
34 'ckeditor',
35 'ckeditor_uploader',
36 'des',
37 'django_filters',
38 'django_jinja',
39 'jet',
40 'modeltranslation',
41 'parler',
42 'postie',
43 'rest_framework',
44 'rest_framework.authtoken',
45 'rest_framework_recaptcha',
46 'robots',
47 'rosetta',
48 'script_pattern',
49 'seo',
50 'solo',
51 'standards',
52 'subdomains',
53 'vuejs_translate',
54 'django.contrib.admin',
55 'django.contrib.auth',
56 'django.contrib.contenttypes',
57 'qsessions',
58 'django.contrib.messages',
59 'django.contrib.staticfiles',
60 'django.contrib.sites',
61 'allauth',
62 'allauth.account',
63 'allauth.socialaccount',
64 'allauth.socialaccount.providers.google',
65 'allauth.socialaccount.providers.facebook',
66 'allauth.socialaccount.providers.twitter',
67 'rest_auth',
68 'rest_auth.registration',
69 'django_otp',
70 'django_otp.plugins.otp_totp',
71 'django_otp.plugins.otp_email']
72Installed Middleware:
73['django.middleware.security.SecurityMiddleware',
74 'qsessions.middleware.SessionMiddleware',
75 'subdomains.middleware.SubdomainMiddleware',
76 'django.middleware.common.CommonMiddleware',
77 'django.middleware.csrf.CsrfViewMiddleware',
78 'django.middleware.locale.LocaleMiddleware',
79 'django.contrib.auth.middleware.AuthenticationMiddleware',
80 'django_otp.middleware.OTPMiddleware',
81 'django.contrib.messages.middleware.MessageMiddleware',
82 'django.middleware.clickjacking.XFrameOptionsMiddleware',
83 'seo.middleware.url_seo_middleware',
84 'apps.staff.middlewares.SubdomainUserMiddleware']
85
86
87Traceback (most recent call last):
88 File "/home/topbet/topbet/topbet/server/.venv/lib/python3.7/site-packages/django/db/backends/utils.py", line 86, in _execute
89 return self.cursor.execute(sql, params)
90
91The above exception (null value in column "active_to" violates not-null constraint
92DETAIL: Failing row contains (14, 2020-11-04 08:30:50.222001+00, null, t, null, null, f, f, t).
93) was the direct cause of the following exception:
94 File "/home/topbet/topbet/topbet/server/.venv/lib/python3.7/site-packages/django/core/handlers/exception.py", line 34, in inner
95 response = get_response(request)
96 File "/home/topbet/topbet/topbet/server/.venv/lib/python3.7/site-packages/django/core/handlers/base.py", line 115, in _get_response
97 response = self.process_exception_by_middleware(e, request)
98 File "/home/topbet/topbet/topbet/server/.venv/lib/python3.7/site-packages/django/core/handlers/base.py", line 113, in _get_response
99 response = wrapped_callback(request, *callback_args, **callback_kwargs)
100 File "/home/topbet/topbet/topbet/server/.venv/lib/python3.7/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
101 return view_func(*args, **kwargs)
102 File "/home/topbet/topbet/topbet/server/.venv/lib/python3.7/site-packages/django/views/generic/base.py", line 71, in view
103 return self.dispatch(request, *args, **kwargs)
104 File "/home/topbet/topbet/topbet/server/.venv/lib/python3.7/site-packages/rest_framework/views.py", line 505, in dispatch
105 response = self.handle_exception(exc)
106 File "/home/topbet/topbet/topbet/server/.venv/lib/python3.7/site-packages/rest_framework/views.py", line 465, in handle_exception
107 self.raise_uncaught_exception(exc)
108 File "/home/topbet/topbet/topbet/server/.venv/lib/python3.7/site-packages/rest_framework/views.py", line 476, in raise_uncaught_exception
109 raise exc
110 File "/home/topbet/topbet/topbet/server/.venv/lib/python3.7/site-packages/rest_framework/views.py", line 502, in dispatch
111 response = handler(request, *args, **kwargs)
112 File "/home/topbet/topbet/topbet/server/.venv/lib/python3.7/site-packages/rest_framework/generics.py", line 258, in patch
113 return self.partial_update(request, *args, **kwargs)
114 File "/home/topbet/topbet/topbet/server/.venv/lib/python3.7/site-packages/rest_framework/mixins.py", line 82, in partial_update
115 return self.update(request, *args, **kwargs)
116 File "/home/topbet/topbet/topbet/server/.venv/lib/python3.7/site-packages/rest_framework/mixins.py", line 68, in update
117 self.perform_update(serializer)
118 File "/home/topbet/topbet/topbet/server/.venv/lib/python3.7/site-packages/rest_framework/mixins.py", line 78, in perform_update
119 serializer.save()
120 File "/home/topbet/topbet/topbet/server/.venv/lib/python3.7/site-packages/rest_framework/serializers.py", line 212, in save
121 self.instance = self.create(validated_data)
122 File "/home/topbet/topbet/topbet/server/apps/staff/serializers/tipsters.py", line 101, in create
123 return super().create(data)
124 File "/home/topbet/topbet/topbet/server/.venv/lib/python3.7/site-packages/rest_framework/serializers.py", line 948, in create
125 instance = ModelClass._default_manager.create(**validated_data)
126 File "/home/topbet/topbet/topbet/server/.venv/lib/python3.7/site-packages/django/db/models/manager.py", line 82, in manager_method
127 return getattr(self.get_queryset(), name)(*args, **kwargs)
128 File "/home/topbet/topbet/topbet/server/.venv/lib/python3.7/site-packages/django/db/models/query.py", line 433, in create
129 obj.save(force_insert=True, using=self.db)
130 File "/home/topbet/topbet/topbet/server/.venv/lib/python3.7/site-packages/django/db/models/base.py", line 749, in save
131 force_update=force_update, update_fields=update_fields)
132 File "/home/topbet/topbet/topbet/server/.venv/lib/python3.7/site-packages/django/db/models/base.py", line 787, in save_base
133 force_update, using, update_fields,
134 File "/home/topbet/topbet/topbet/server/.venv/lib/python3.7/site-packages/django/db/models/base.py", line 890, in _save_table
135 results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw)
136 File "/home/topbet/topbet/topbet/server/.venv/lib/python3.7/site-packages/django/db/models/base.py", line 929, in _do_insert
137 using=using, raw=raw,
138 File "/home/topbet/topbet/topbet/server/.venv/lib/python3.7/site-packages/django/db/models/manager.py", line 82, in manager_method
139 return getattr(self.get_queryset(), name)(*args, **kwargs)
140 File "/home/topbet/topbet/topbet/server/.venv/lib/python3.7/site-packages/django/db/models/query.py", line 1204, in _insert
141 return query.get_compiler(using=using).execute_sql(returning_fields)
142 File "/home/topbet/topbet/topbet/server/.venv/lib/python3.7/site-packages/django/db/models/sql/compiler.py", line 1394, in execute_sql
143 cursor.execute(sql, params)
144 File "/home/topbet/topbet/topbet/server/.venv/lib/python3.7/site-packages/django/db/backends/utils.py", line 100, in execute
145 return super().execute(sql, params)
146 File "/home/topbet/topbet/topbet/server/.venv/lib/python3.7/site-packages/django/db/backends/utils.py", line 68, in execute
147 return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
148 File "/home/topbet/topbet/topbet/server/.venv/lib/python3.7/site-packages/django/db/backends/utils.py", line 77, in _execute_with_wrappers
149 return executor(sql, params, many, context)
150 File "/home/topbet/topbet/topbet/server/.venv/lib/python3.7/site-packages/django/db/backends/utils.py", line 86, in _execute
151 return self.cursor.execute(sql, params)
152 File "/home/topbet/topbet/topbet/server/.venv/lib/python3.7/site-packages/django/db/utils.py", line 90, in __exit__
153 raise dj_exc_value.with_traceback(traceback) from exc_value
154 File "/home/topbet/topbet/topbet/server/.venv/lib/python3.7/site-packages/django/db/backends/utils.py", line 86, in _execute
155 return self.cursor.execute(sql, params)
156
157Exception Type: IntegrityError at /api/v1/tipster/subscribe/paid/sdfsdf/
158Exception Value: null value in column "active_to" violates not-null constraint
159DETAIL: Failing row contains (14, 2020-11-04 08:30:50.222001+00, null, t, null, null, f, f, t).
160
161Request information:
162USER: QatestAlina ( )
163
164GET: No GET data
165
166POST: No POST data
167
168FILES: No FILES data
169
170COOKIES:
171top_bet_cookies_accept = 'true'
172top_bet_theme = 'light'
173csrftoken = 'urcsr7nmeCeRY3mmLWYBW8p5i4hPWNu2AMJOAVItBtF9yoiE4VUwPy2c0jFbz1Aa'
174sessionid = 'm8ek17n5k4gl16kwzkb0nfh3w66rtqwn'
175
176META:
177CONTENT_LENGTH = '25'
178CONTENT_TYPE = 'application/json;charset=UTF-8'
179CSRF_COOKIE = 'urcsr7nmeCeRY3mmLWYBW8p5i4hPWNu2AMJOAVItBtF9yoiE4VUwPy2c0jFbz1Aa'
180HTTP_ACCEPT = 'application/json, text/plain, */*'
181HTTP_ACCEPT_ENCODING = 'gzip, deflate, br'
182HTTP_ACCEPT_LANGUAGE = 'undefined'
183HTTP_CONNECTION = 'close'
184HTTP_COOKIE = 'top_bet_cookies_accept=true; top_bet_theme=light; csrftoken=urcsr7nmeCeRY3mmLWYBW8p5i4hPWNu2AMJOAVItBtF9yoiE4VUwPy2c0jFbz1Aa; sessionid=m8ek17n5k4gl16kwzkb0nfh3w66rtqwn'
185HTTP_HOST = 'topbet.ua'
186HTTP_ORIGIN = 'https://topbet.ua'
187HTTP_REFERER = 'https://topbet.ua/tipsters/'
188HTTP_SEC_CH_UA = '"Chromium";v="86", "\\"Not\\\\A;Brand";v="99", "Google Chrome";v="86"'
189HTTP_SEC_CH_UA_MOBILE = '?0'
190HTTP_SEC_FETCH_DEST = 'empty'
191HTTP_SEC_FETCH_MODE = 'cors'
192HTTP_SEC_FETCH_SITE = 'same-origin'
193HTTP_USER_AGENT = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.183 Safari/537.36'
194HTTP_X_CSRFTOKEN = 'urcsr7nmeCeRY3mmLWYBW8p5i4hPWNu2AMJOAVItBtF9yoiE4VUwPy2c0jFbz1Aa'
195HTTP_X_FORWARDED_FOR = '185.248.130.166'
196HTTP_X_FORWARDED_PROTO = 'https'
197HTTP_X_REQUESTED_WITH = 'XMLHttpRequest'
198PATH_INFO = '/api/v1/tipster/subscribe/paid/sdfsdf/'
199QUERY_STRING = ''
200RAW_URI = '/api/v1/tipster/subscribe/paid/sdfsdf/'
201REMOTE_ADDR = ''
202REQUEST_METHOD = 'PATCH'
203SCRIPT_NAME = ''
204SERVER_NAME = 'topbet.ua'
205SERVER_PORT = '443'
206SERVER_PROTOCOL = 'HTTP/1.0'
207SERVER_SOFTWARE = 'gunicorn/20.0.4'
208gunicorn.socket = <gevent._socket3.socket at 0x7fb49b461818 object, fd=19, family=1, type=1, proto=0>
209wsgi.errors = <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7fb49b6d2f98>
210wsgi.file_wrapper = ''
211wsgi.input = <gunicorn.http.body.Body object at 0x7fb49b6d2c88>
212wsgi.input_terminated = True
213wsgi.multiprocess = False
214wsgi.multithread = True
215wsgi.run_once = False
216wsgi.url_scheme = 'https'
217wsgi.version = '(1, 0)'
218
219Settings:
220Using settings module app.settings
221ABSOLUTE_URL_OVERRIDES = {}
222ACCOUNT_ADAPTER = 'apps.staff.adapters.AccountAdapter'
223ACCOUNT_AUTHENTICATION_METHOD = 'username'
224ACCOUNT_CONFIRM_EMAIL_ON_GET = True
225ACCOUNT_DEFAULT_HTTP_PROTOCOL = 'https'
226ACCOUNT_EMAIL_REQUIRED = True
227ACCOUNT_EMAIL_VERIFICATION = 'mandatory'
228ACCOUNT_LOGIN_ON_EMAIL_CONFIRMATION = True
229ACCOUNT_LOGIN_ON_PASSWORD_RESET = '********************'
230ACCOUNT_LOGOUT_ON_GET = True
231ACCOUNT_UNIQUE_EMAIL = True
232ACCOUNT_USERNAME_REQUIRED = True
233ADMINS = []
234ALLOWED_HOSTS = ['157.230.103.229', '.topbet.ua']
235API_RE_PREFIX = '********************'
236APPEND_SLASH = True
237AUTHENTICATION_BACKENDS = "('apps.staff.auth_backends.AuthenticationBackend',)"
238AUTH_PASSWORD_VALIDATORS = '********************'
239AUTH_USER_MODEL = 'staff.CustomUser'
240BASE_DIR = PosixPath('/home/topbet/topbet/topbet/server/app/settings/default.py')
241BASE_ROOT = PosixPath('/home/topbet/topbet/topbet/server/app')
242BASE_URL = 'https://topbet.ua'
243CACHES = {'default': {'BACKEND': 'django_redis.cache.RedisCache', 'LOCATION': 'redis://127.0.0.1:6379/1'}}
244CACHE_MIDDLEWARE_ALIAS = 'default'
245CACHE_MIDDLEWARE_KEY_PREFIX = '********************'
246CACHE_MIDDLEWARE_SECONDS = 600
247CELERY_ACCEPT_CONTENT = ['json']
248CELERY_BROKER_URL = 'redis://127.0.0.1:6379/0'
249CELERY_RESULT_SERIALIZER = 'json'
250CELERY_TASK_SERIALIZER = 'json'
251CKEDITOR_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'}}
252CKEDITOR_UPLOAD_PATH = ''
253CRUMBS_HOME_URL_NAME = 'pages:index'
254CSRF_COOKIE_AGE = 31449600
255CSRF_COOKIE_DOMAIN = '.topbet.ua'
256CSRF_COOKIE_HTTPONLY = False
257CSRF_COOKIE_NAME = 'csrftoken'
258CSRF_COOKIE_PATH = '/'
259CSRF_COOKIE_SAMESITE = 'Lax'
260CSRF_COOKIE_SECURE = True
261CSRF_FAILURE_VIEW = 'django.views.csrf.csrf_failure'
262CSRF_HEADER_NAME = 'HTTP_X_CSRFTOKEN'
263CSRF_TRUSTED_ORIGINS = []
264CSRF_USE_SESSIONS = False
265DATABASES = {'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}}}
266DATABASE_ROUTERS = []
267DATA_UPLOAD_MAX_MEMORY_SIZE = 2621440
268DATA_UPLOAD_MAX_NUMBER_FIELDS = 1000
269DATETIME_FORMAT = '%d.%m.%Y, %H:%M:%S'
270DATETIME_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']
271DATE_FORMAT = '%d.%m.%Y'
272DATE_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']
273DEBUG = 'True'
274DEBUG_PROPAGATE_EXCEPTIONS = False
275DEBUG_TOOLBAR_CONFIG = {'SHOW_COLLAPSED': True, 'SHOW_TOOLBAR_CALLBACK': <function <lambda> at 0x7fb4a827f9d8>}
276DECIMAL_SEPARATOR = '.'
277DEFAULT_CHARSET = 'utf-8'
278DEFAULT_EXCEPTION_REPORTER_FILTER = 'django.views.debug.SafeExceptionReporterFilter'
279DEFAULT_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']
280DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage'
281DEFAULT_FROM_EMAIL = 'admin@admin.admin'
282DEFAULT_INDEX_TABLESPACE = ''
283DEFAULT_TABLESPACE = ''
284DISALLOWED_USER_AGENTS = []
285DRF_RECAPTCHA_PUBLIC_KEY = '********************'
286DRF_RECAPTCHA_SECRET_KEY = '********************'
287DRF_RECAPTCHA_VERIFY_ENDPOINT = 'https://www.google.com/recaptcha/api/siteverify'
288EMAIL_BACKEND = 'des.backends.ConfiguredEmailBackend'
289EMAIL_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'}
290EMAIL_FILE_PATH = ''
291EMAIL_HOST = '127.0.0.1'
292EMAIL_HOST_PASSWORD = '********************'
293EMAIL_HOST_USER = None
294EMAIL_PORT = None
295EMAIL_SSL_CERTFILE = None
296EMAIL_SSL_KEYFILE = '********************'
297EMAIL_SUBJECT_PREFIX = '[Django] '
298EMAIL_TIMEOUT = None
299EMAIL_USE_LOCALTIME = False
300EMAIL_USE_SSL = False
301EMAIL_USE_TLS = False
302FILE_CHARSET = 'utf-8'
303FILE_UPLOAD_DIRECTORY_PERMISSIONS = None
304FILE_UPLOAD_HANDLERS = ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler']
305FILE_UPLOAD_MAX_MEMORY_SIZE = 2621440
306FILE_UPLOAD_PERMISSIONS = 420
307FILE_UPLOAD_TEMP_DIR = None
308FIRST_DAY_OF_WEEK = 0
309FIXTURE_DIRS = []
310FORCE_SCRIPT_NAME = None
311FORMAT_MODULE_PATH = None
312FORM_RENDERER = 'django.forms.renderers.DjangoTemplates'
313IGNORABLE_404_URLS = []
314INSTALLED_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']
315INTERNAL_IPS = []
316JET_SIDE_MENU_COMPACT = True
317LANGUAGES = "(('uk', 'Ukrainian'), ('ru', 'Russian'), ('en', 'English'))"
318LANGUAGES_BIDI = ['he', 'ar', 'fa', 'ur']
319LANGUAGE_CODE = 'uk'
320LANGUAGE_COOKIE_AGE = None
321LANGUAGE_COOKIE_DOMAIN = None
322LANGUAGE_COOKIE_HTTPONLY = False
323LANGUAGE_COOKIE_NAME = 'django_language'
324LANGUAGE_COOKIE_PATH = '/'
325LANGUAGE_COOKIE_SAMESITE = None
326LANGUAGE_COOKIE_SECURE = False
327LOCALE_PATHS = "(PosixPath('/home/topbet/topbet/topbet/server/app/locale'),)"
328LOGGING = {'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']}}
329LOGGING_CONFIG = 'logging.config.dictConfig'
330LOGIN_REDIRECT_URL = '/auth/login/'
331LOGIN_URL = '/#auth'
332LOGOUT_REDIRECT_URL = None
333MANAGERS = []
334MEDIA_ROOT = PosixPath('/home/topbet/topbet/topbet/server/app/uploads')
335MEDIA_URL = '/uploads/'
336MESSAGE_CONFIGS = {'telegram': {'events': {'new_forecast__user': {'domain': 'Домен'}}}}
337MESSAGE_EVENTS = Choices(('new_forecast__user', 'new_forecast__user', 'Новий прогноз (користувач)'))
338MESSAGE_HTML_ADMIN_WIDGETS = {'ckeditor': {'widget': 'CKEditorUploadingWidget', 'widget_module': 'ckeditor_uploader.widgets', 'attrs': {}}}
339MESSAGE_SECTIONS = Choices(('telegram', 'telegram', 'Telegram'))
340MESSAGE_STORAGE = 'django.contrib.messages.storage.fallback.FallbackStorage'
341MIDDLEWARE = ['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']
342MIGRATION_MODULES = {}
343MONTH_DAY_FORMAT = 'F j'
344NUMBER_GROUPING = 0
345OLD_PASSWORD_FIELD_ENABLED = '********************'
346PARLER_DEFAULT_LANGUAGE_CODE = 'uk'
347PARLER_LANGUAGES = {None: ({'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'}}
348PASSWORD_HASHERS = '********************'
349PASSWORD_RESET_TIMEOUT_DAYS = '********************'
350POSTIE_HTML_ADMIN_WIDGET = {'widget': 'CKEditorUploadingWidget', 'widget_module': 'ckeditor_uploader.widgets', 'attrs': {}}
351POSTIE_INSTANT_SEND = False
352POSTIE_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', 'Обробка питань (адміністратор)'), ('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', 'Новий прогноз (користувач)'))
353POSTIE_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': 'Домен'}}
354PREPEND_WWW = False
355PROJECT_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']
356REST_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'}
357ROOT_URLCONF = 'app.urls'
358ROSETTA_SHOW_AT_ADMIN_PANEL = True
359SECRET_KEY = '********************'
360SECURE_BROWSER_XSS_FILTER = False
361SECURE_CONTENT_TYPE_NOSNIFF = True
362SECURE_HSTS_INCLUDE_SUBDOMAINS = False
363SECURE_HSTS_PRELOAD = False
364SECURE_HSTS_SECONDS = 0
365SECURE_PROXY_SSL_HEADER = "('HTTP_X_FORWARDED_PROTO', 'https')"
366SECURE_REDIRECT_EXEMPT = []
367SECURE_REFERRER_POLICY = None
368SECURE_SSL_HOST = None
369SECURE_SSL_REDIRECT = False
370SENDPULSE_EMAIL_FROMEMAIL = 'topbet.sendpulse@gmail.com'
371SENDPULSE_EMAIL_HOST = 'smtp-pulse.com'
372SENDPULSE_EMAIL_PASSWORD = '********************'
373SENDPULSE_EMAIL_PORT = 465
374SENDPULSE_EMAIL_USERNAME = 'topbet.sendpulse@gmail.com'
375SENDPULSE_EMAIL_USE_SSL = True
376SENDPULSE_EMAIL_USE_TLS = False
377SEO_HTML_ADMIN_WIDGET = {'widget': 'CKEditorUploadingWidget', 'widget_path': 'ckeditor_uploader.widgets'}
378SEO_MODELS = []
379SEO_USE_URL_FULL_PATH = True
380SEO_USE_URL_SEO = True
381SERVER_EMAIL = 'root@localhost'
382SESSION_CACHE_ALIAS = 'default'
383SESSION_COOKIE_AGE = 1209600
384SESSION_COOKIE_DOMAIN = '.topbet.ua'
385SESSION_COOKIE_HTTPONLY = True
386SESSION_COOKIE_NAME = 'sessionid'
387SESSION_COOKIE_PATH = '/'
388SESSION_COOKIE_SAMESITE = 'Lax'
389SESSION_COOKIE_SECURE = True
390SESSION_ENGINE = 'qsessions.backends.cached_db'
391SESSION_EXPIRE_AT_BROWSER_CLOSE = False
392SESSION_FILE_PATH = None
393SESSION_SAVE_EVERY_REQUEST = False
394SESSION_SERIALIZER = 'django.contrib.sessions.serializers.JSONSerializer'
395SETTINGS_MODULE = 'app.settings'
396SHORT_DATETIME_FORMAT = 'm/d/Y P'
397SHORT_DATE_FORMAT = 'm/d/Y'
398SIGNING_BACKEND = 'django.core.signing.TimestampSigner'
399SILENCED_SYSTEM_CHECKS = []
400SITE_ID = 1
401SOCIALACCOUNT_ADAPTER = 'apps.staff.adapters.SocialAccountAdapter'
402SOCIALACCOUNT_EMAIL_VERIFICATION = False
403SOCIALACCOUNT_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'}}
404STATICFILES_DIRS = []
405STATICFILES_FINDERS = ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder']
406STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage'
407STATIC_ROOT = PosixPath('/home/topbet/topbet/topbet/server/app/static')
408STATIC_URL = '/static/'
409SUBDOMAIN_URLCONFS = {}
410TEMPLATES = [{'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']}}]
411TEST_NON_SERIALIZED_APPS = []
412TEST_RUNNER = 'django.test.runner.DiscoverRunner'
413THOUSAND_SEPARATOR = ','
414TIME_FORMAT = 'P'
415TIME_INPUT_FORMATS = ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M']
416TIME_ZONE = 'Europe/Kiev'
417USE_I18N = True
418USE_L10N = True
419USE_THOUSAND_SEPARATOR = False
420USE_TZ = True
421USE_X_FORWARDED_HOST = False
422USE_X_FORWARDED_PORT = False
423WSGI_APPLICATION = 'app.wsgi.application'
424X_FRAME_OPTIONS = 'SAMEORIGIN'
425YEAR_MONTH_FORMAT = 'F Y'
426
427
428You're seeing this error because you have DEBUG = True in your
429Django settings file. Change that to False, and Django will
430display a standard page generated by the handler for this status code.
431