· 5 years ago · Apr 16, 2020, 09:48 AM
1PaymentInitializationFailed at /api/v1/tariff/buy/
2Заказ 41 был оплачен.
3
4Request Method: POST
5Request URL: http://tradefx.webcase-dev.com/api/v1/tariff/buy/
6Django Version: 2.2
7Python Executable: /home/tradefx/tradefx/tradefx/server/.venv/bin/python
8Python Version: 3.8.0
9Python Path: ['/home/tradefx/tradefx/tradefx/server', '/home/tradefx/tradefx/tradefx/server/.venv/bin', '/usr/lib/python38.zip', '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload', '/home/tradefx/tradefx/tradefx/server/.venv/lib/python3.8/site-packages']
10Server time: Чт, 16 Апр 2020 09:43:39 +0000
11Installed Applications:
12['menus',
13 'apps.blog',
14 'apps.pages',
15 'apps.authentication',
16 'apps.staff',
17 'apps.indicators',
18 'apps.tariffs',
19 'apps.payment',
20 'apps.courses',
21 'apps.portfolio',
22 'markup',
23 'rosetta',
24 'django_jinja',
25 'jet',
26 'jet.dashboard',
27 'des',
28 'ckeditor',
29 'vuejs_translate',
30 'drf_yasg',
31 'solo',
32 'seo',
33 'constance',
34 'postie',
35 'allauth',
36 'allauth.socialaccount',
37 'allauth.account',
38 'django_mptt_admin',
39 'rest_framework',
40 'rest_framework.authtoken',
41 'rest_auth.registration',
42 'script_pattern',
43 'adminsortable2',
44 'django_otp',
45 'django_otp.plugins.otp_totp',
46 'django.contrib.admin',
47 'django.contrib.auth',
48 'django.contrib.contenttypes',
49 'django.contrib.sessions',
50 'django.contrib.messages',
51 'django.contrib.staticfiles',
52 'django.contrib.sites']
53Installed Middleware:
54['django.middleware.security.SecurityMiddleware',
55 'django.contrib.sessions.middleware.SessionMiddleware',
56 'django.middleware.common.CommonMiddleware',
57 'django.middleware.csrf.CsrfViewMiddleware',
58 'django.contrib.auth.middleware.AuthenticationMiddleware',
59 'django.contrib.messages.middleware.MessageMiddleware',
60 'django.middleware.clickjacking.XFrameOptionsMiddleware']
61
62
63Traceback:
64
65File "/home/tradefx/tradefx/tradefx/server/.venv/lib/python3.8/site-packages/django/core/handlers/exception.py" in inner
66 34. response = get_response(request)
67
68File "/home/tradefx/tradefx/tradefx/server/.venv/lib/python3.8/site-packages/django/core/handlers/base.py" in _get_response
69 115. response = self.process_exception_by_middleware(e, request)
70
71File "/home/tradefx/tradefx/tradefx/server/.venv/lib/python3.8/site-packages/django/core/handlers/base.py" in _get_response
72 113. response = wrapped_callback(request, *callback_args, **callback_kwargs)
73
74File "/home/tradefx/tradefx/tradefx/server/.venv/lib/python3.8/site-packages/django/views/decorators/csrf.py" in wrapped_view
75 54. return view_func(*args, **kwargs)
76
77File "/home/tradefx/tradefx/tradefx/server/.venv/lib/python3.8/site-packages/django/views/generic/base.py" in view
78 71. return self.dispatch(request, *args, **kwargs)
79
80File "/home/tradefx/tradefx/tradefx/server/.venv/lib/python3.8/site-packages/rest_framework/views.py" in dispatch
81 505. response = self.handle_exception(exc)
82
83File "/home/tradefx/tradefx/tradefx/server/.venv/lib/python3.8/site-packages/rest_framework/views.py" in handle_exception
84 465. self.raise_uncaught_exception(exc)
85
86File "/home/tradefx/tradefx/tradefx/server/.venv/lib/python3.8/site-packages/rest_framework/views.py" in raise_uncaught_exception
87 476. raise exc
88
89File "/home/tradefx/tradefx/tradefx/server/.venv/lib/python3.8/site-packages/rest_framework/views.py" in dispatch
90 502. response = handler(request, *args, **kwargs)
91
92File "/home/tradefx/tradefx/tradefx/server/.venv/lib/python3.8/site-packages/rest_framework/generics.py" in post
93 190. return self.create(request, *args, **kwargs)
94
95File "/home/tradefx/tradefx/tradefx/server/.venv/lib/python3.8/site-packages/rest_framework/mixins.py" in create
96 19. self.perform_create(serializer)
97
98File "/home/tradefx/tradefx/tradefx/server/.venv/lib/python3.8/site-packages/rest_framework/mixins.py" in perform_create
99 24. serializer.save()
100
101File "/home/tradefx/tradefx/tradefx/server/.venv/lib/python3.8/site-packages/rest_framework/serializers.py" in save
102 212. self.instance = self.create(validated_data)
103
104File "/home/tradefx/tradefx/tradefx/server/apps/tariffs/rest/serializers.py" in create
105 43. tariff, self.payment = create_user_tariff(**validated_data)
106
107File "/home/tradefx/tradefx/tradefx/server/apps/tariffs/contrib/creation.py" in create_user_tariff
108 27. payment: Payment = pay(tariff.price, reference_object=user_tariff)
109
110File "/home/tradefx/tradefx/tradefx/server/apps/payment/contrib/payment.py" in pay
111 74. raise PaymentInitializationFailed(
112
113Exception Type: PaymentInitializationFailed at /api/v1/tariff/buy/
114Exception Value: Заказ 41 был оплачен.
115Request information:
116USER: admin
117
118GET: No GET data
119
120POST: No POST data
121
122FILES: No FILES data
123
124COOKIES:
125csrftoken = '8p9dZV1qr9pDFD1NLGz4KlzWhLilmU1SGtqfK00TmViQV0kBPxeUdl3qubHcQ0kX'
126sessionid = '3ecx38105efdp5klwg41r3o5ekdo812d'
127
128META:
129CONTENT_LENGTH = '14'
130CONTENT_TYPE = 'application/json'
131CSRF_COOKIE = '8p9dZV1qr9pDFD1NLGz4KlzWhLilmU1SGtqfK00TmViQV0kBPxeUdl3qubHcQ0kX'
132HTTP_ACCEPT = '*/*'
133HTTP_ACCEPT_ENCODING = 'gzip, deflate, br'
134HTTP_ACCEPT_LANGUAGE = 'ru,en-US;q=0.8,en;q=0.5,uk;q=0.3'
135HTTP_CACHE_CONTROL = 'no-cache'
136HTTP_CONNECTION = 'close'
137HTTP_COOKIE = 'csrftoken=8p9dZV1qr9pDFD1NLGz4KlzWhLilmU1SGtqfK00TmViQV0kBPxeUdl3qubHcQ0kX; sessionid=3ecx38105efdp5klwg41r3o5ekdo812d'
138HTTP_HOST = 'tradefx.webcase-dev.com'
139HTTP_ORIGIN = 'https://tradefx.webcase-dev.com'
140HTTP_REFERER = 'https://tradefx.webcase-dev.com/client'
141HTTP_USER_AGENT = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36 Edge/18.18362'
142HTTP_X_CSRFTOKEN = '8p9dZV1qr9pDFD1NLGz4KlzWhLilmU1SGtqfK00TmViQV0kBPxeUdl3qubHcQ0kX'
143HTTP_X_FORWARDED_FOR = '185.248.130.166'
144HTTP_X_REQUESTED_WITH = 'XMLHttpRequest'
145PATH_INFO = '/api/v1/tariff/buy/'
146QUERY_STRING = ''
147RAW_URI = '/api/v1/tariff/buy/'
148REMOTE_ADDR = ''
149REQUEST_METHOD = 'POST'
150SCRIPT_NAME = ''
151SERVER_NAME = 'tradefx.webcase-dev.com'
152SERVER_PORT = '80'
153SERVER_PROTOCOL = 'HTTP/1.0'
154SERVER_SOFTWARE = 'gunicorn/20.0.4'
155gunicorn.socket = <gevent._socket3.socket object, fd=8, family=1, type=1, proto=0>
156wsgi.errors = <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7fe5c91c8520>
157wsgi.file_wrapper = ''
158wsgi.input = <gunicorn.http.body.Body object at 0x7fe5c91c8be0>
159wsgi.input_terminated = True
160wsgi.multiprocess = True
161wsgi.multithread = True
162wsgi.run_once = False
163wsgi.url_scheme = 'http'
164wsgi.version = '(1, 0)'
165
166Settings:
167Using settings module app.settings
168ABSOLUTE_URL_OVERRIDES = {}
169ACCOUNT_AUTHENTICATION_METHOD = 'username_email'
170ACCOUNT_EMAIL_VERIFICATION = 'none'
171ADMINS = []
172ALLOWED_HOSTS = ['159.89.51.247', 'tradefx.webcase-dev.com']
173APPEND_SLASH = True
174AUTHENTICATION_BACKENDS = ['django.contrib.auth.backends.ModelBackend']
175AUTH_PASSWORD_VALIDATORS = '********************'
176AUTH_USER_MODEL = 'staff.User'
177BASE_DIR = PosixPath('/home/tradefx/tradefx/tradefx/server/app/settings/django.py')
178BASE_ROOT = PosixPath('/home/tradefx/tradefx/tradefx/server/app')
179CACHES = {'default': {'BACKEND': 'django_redis.cache.RedisCache', 'LOCATION': 'redis://127.0.0.1:6379/1'}}
180CACHE_MIDDLEWARE_ALIAS = 'default'
181CACHE_MIDDLEWARE_KEY_PREFIX = '********************'
182CACHE_MIDDLEWARE_SECONDS = 600
183CELERY_ACCEPT_CONTENT = ['json']
184CELERY_BROKER_URL = 'redis://127.0.0.1:6379/0'
185CELERY_RESULT_SERIALIZER = 'json'
186CELERY_TASK_SERIALIZER = 'json'
187CONSTANCE_ADDITIONAL_FIELDS = {'email_field': [<class 'django.forms.fields.EmailField'>, {}], 'image_field': [<class 'django.forms.fields.ImageField'>, {}], 'decimal_field': [<class 'django.forms.fields.DecimalField'>, {}]}
188CONSTANCE_CONFIG = {'ADMIN_EMAIL': ('admin@admin.com', 'Admin email', 'email_field'), 'LOGO': ('', 'Logo', 'image_field'), 'TINKOFF_TERMINAL_ID': ('', 'Tinkoff terminal id', <class 'str'>), 'TINKOFF_PASSWORD': '********************', 'INDIVIDUAL_INDICATOR_PRICE': (Decimal('100'), 'Individual indicator price', 'decimal_field'), 'PORTFOLIO_PRICE': (Decimal('100'), 'Portfolio price', 'decimal_field'), 'REFERRAL_PERCENT': (3, 'Referral percent', <class 'int'>)}
189CONSTANCE_CONFIG_FIELDSETS = {'General': ('LOGO', 'ADMIN_EMAIL', 'INDIVIDUAL_INDICATOR_PRICE', 'PORTFOLIO_PRICE', 'REFERRAL_PERCENT'), 'Configs': ('TINKOFF_TERMINAL_ID', 'TINKOFF_PASSWORD')}
190CONSTANCE_DATABASE_CACHE_AUTOFILL_TIMEOUT = None
191CONSTANCE_REDIS_CONNECTION_CLASS = 'django_redis.get_redis_connection'
192CSRF_COOKIE_AGE = 31449600
193CSRF_COOKIE_DOMAIN = None
194CSRF_COOKIE_HTTPONLY = False
195CSRF_COOKIE_NAME = 'csrftoken'
196CSRF_COOKIE_PATH = '/'
197CSRF_COOKIE_SAMESITE = 'Lax'
198CSRF_COOKIE_SECURE = False
199CSRF_FAILURE_VIEW = 'django.views.csrf.csrf_failure'
200CSRF_HEADER_NAME = 'HTTP_X_CSRFTOKEN'
201CSRF_TRUSTED_ORIGINS = []
202CSRF_USE_SESSIONS = False
203DATABASES = {'default': {'NAME': 'tradefx_db', 'USER': 'tradefx_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}}}
204DATABASE_ROUTERS = []
205DATA_UPLOAD_MAX_MEMORY_SIZE = 2621440
206DATA_UPLOAD_MAX_NUMBER_FIELDS = 1000
207DATETIME_FORMAT = 'N j, Y, P'
208DATETIME_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']
209DATE_FORMAT = 'N j, Y'
210DATE_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']
211DEBUG = True
212DEBUG_PROPAGATE_EXCEPTIONS = False
213DECIMAL_SEPARATOR = '.'
214DEFAULT_CHARSET = 'utf-8'
215DEFAULT_CONTENT_TYPE = 'text/html'
216DEFAULT_EXCEPTION_REPORTER_FILTER = 'django.views.debug.SafeExceptionReporterFilter'
217DEFAULT_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']
218DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage'
219DEFAULT_FROM_EMAIL = 'admin@admin.admin'
220DEFAULT_INDEX_TABLESPACE = ''
221DEFAULT_TABLESPACE = ''
222DISALLOWED_USER_AGENTS = []
223EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
224EMAIL_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'}
225EMAIL_FILE_PATH = ''
226EMAIL_HOST = '127.0.0.1'
227EMAIL_HOST_PASSWORD = '********************'
228EMAIL_HOST_USER = None
229EMAIL_PORT = None
230EMAIL_SSL_CERTFILE = None
231EMAIL_SSL_KEYFILE = '********************'
232EMAIL_SUBJECT_PREFIX = '[Django] '
233EMAIL_TIMEOUT = None
234EMAIL_USE_LOCALTIME = False
235EMAIL_USE_SSL = False
236EMAIL_USE_TLS = False
237FILE_CHARSET = 'utf-8'
238FILE_UPLOAD_DIRECTORY_PERMISSIONS = None
239FILE_UPLOAD_HANDLERS = ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler']
240FILE_UPLOAD_MAX_MEMORY_SIZE = 2621440
241FILE_UPLOAD_PERMISSIONS = None
242FILE_UPLOAD_TEMP_DIR = None
243FIRST_DAY_OF_WEEK = 0
244FIXTURE_DIRS = []
245FORCE_SCRIPT_NAME = None
246FORMAT_MODULE_PATH = None
247FORM_RENDERER = 'django.forms.renderers.DjangoTemplates'
248IGNORABLE_404_URLS = []
249INSTALLED_APPS = ['menus', 'apps.blog', 'apps.pages', 'apps.authentication', 'apps.staff', 'apps.indicators', 'apps.tariffs', 'apps.payment', 'apps.courses', 'apps.portfolio', 'markup', 'rosetta', 'django_jinja', 'jet', 'jet.dashboard', 'des', 'ckeditor', 'vuejs_translate', 'drf_yasg', 'solo', 'seo', 'constance', 'postie', 'allauth', 'allauth.socialaccount', 'allauth.account', 'django_mptt_admin', 'rest_framework', 'rest_framework.authtoken', 'rest_auth.registration', 'script_pattern', 'adminsortable2', 'django_otp', 'django_otp.plugins.otp_totp', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.sites']
250INTERNAL_IPS = []
251JET_SIDE_MENU_COMPACT = True
252LANGUAGES = "(('ru', 'Russian'),)"
253LANGUAGES_BIDI = ['he', 'ar', 'fa', 'ur']
254LANGUAGE_CODE = 'ru'
255LANGUAGE_COOKIE_AGE = None
256LANGUAGE_COOKIE_DOMAIN = None
257LANGUAGE_COOKIE_NAME = 'django_language'
258LANGUAGE_COOKIE_PATH = '/'
259LOCALE_PATHS = "(PosixPath('/home/tradefx/tradefx/tradefx/server/app/locale'),)"
260LOGGING = {'version': 1, 'disable_existing_loggers': False, 'handlers': {'console': {'level': 'DEBUG', 'class': 'logging.StreamHandler'}, 'logfile': {'level': 'DEBUG', 'class': 'logging.FileHandler', 'filename': PosixPath('/home/tradefx/tradefx/tradefx/server/app/settings/django.py/../logfile.log')}}, 'root': {'level': 'INFO', 'handlers': ['console', 'logfile']}}
261LOGGING_CONFIG = 'logging.config.dictConfig'
262LOGIN_REDIRECT_URL = '/accounts/profile/'
263LOGIN_URL = '/accounts/login/'
264LOGOUT_REDIRECT_URL = None
265MANAGERS = []
266MEDIA_ROOT = PosixPath('/home/tradefx/tradefx/tradefx/server/app/uploads')
267MEDIA_URL = '/uploads/'
268MENU_SETTINGS = {'variations': [{'label': 'Header', 'label_plural': 'Header', 'position': 'header', 'is_nested': False}, {'label': 'Header burger', 'label_plural': 'Header burger', 'position': 'header_burger', 'is_nested': False}, {'label': 'Footer', 'label_plural': 'Footer', 'position': 'footer', 'is_nested': False}]}
269MESSAGE_STORAGE = 'django.contrib.messages.storage.fallback.FallbackStorage'
270MIDDLEWARE = ['django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware']
271MIGRATION_MODULES = {}
272MONTH_DAY_FORMAT = 'F j'
273NUMBER_GROUPING = 0
274OLD_PASSWORD_FIELD_ENABLED = '********************'
275PASSWORD_HASHERS = '********************'
276PASSWORD_RESET_TIMEOUT_DAYS = '********************'
277POSTIE_HTML_ADMIN_WIDGET = {'widget': 'CKEditorWidget', 'widget_module': 'ckeditor.widgets'}
278POSTIE_INSTANT_SEND = True
279POSTIE_TEMPLATE_CHOICES = Choices(('password_reset', 'password_reset', 'Восстановление пароля'), ('registration', 'registration', 'Registration'), ('tariff', 'tariff', 'Tariff paid'), ('indicator_user', 'indicator_user', 'Indicator, success request, for user'), ('indicator_admin', 'indicator_admin', 'Indicator, success request, for admin'), ('individual_indicator_user', 'individual_indicator_user', 'Individual indicator, success request, for user'), ('individual_indicator_admin', 'individual_indicator_admin', 'Individual indicator, success request, for admin'), ('portfolio', 'portfolio', 'Individual indicator, success request, for user'), ('portfolio_admin', 'portfolio_admin', 'Individual indicator, success request, for admin'), ('tariff_soon_end', 'tariff_soon_end', 'Tariff soon end'), ('tariff_end', 'tariff_end', 'Tariff end'))
280POSTIE_TEMPLATE_CONTEXTS = {'password_reset': '********************', 'registration': {'username': 'Имя пользователя', 'email': 'Адрес электронной почты', 'link': 'Ссылка'}, 'tariff': {'username': 'Имя пользователя', 'email': 'Адрес электронной почты', 'tariff_name': 'Tariff name', 'first_name': 'First name', 'last_name': 'Last name'}, 'indicator_user': {'username': 'Имя пользователя', 'email': 'Адрес электронной почты', 'first_name': 'First name', 'last_name': 'Last name'}, 'indicator_admin': {'username': 'Имя пользователя', 'email': 'Адрес электронной почты', 'link': 'Ссылка'}, 'individual_indicator_user': {'username': 'Имя пользователя', 'email': 'Адрес электронной почты', 'first_name': 'First name', 'last_name': 'Last name'}, 'individual_indicator_admin': {'username': 'Имя пользователя', 'email': 'Адрес электронной почты', 'link': 'Ссылка'}, 'portfolio': {'username': 'Имя пользователя', 'email': 'Адрес электронной почты', 'first_name': 'First name', 'last_name': 'Last name'}, 'portfolio_admin': {'username': 'Имя пользователя', 'email': 'Адрес электронной почты', 'link': 'Ссылка'}, 'tariff_soon_end': {'username': 'Имя пользователя', 'first_name': 'First name', 'last_name': 'Last name', 'email': 'Адрес электронной почты', 'end_data': 'End date'}, 'tariff_end': {'username': 'Имя пользователя', 'first_name': 'First name', 'last_name': 'Last name', 'email': 'Адрес электронной почты'}}
281PREPEND_WWW = False
282PROJECT_APPS = ['menus', 'apps.blog', 'apps.pages', 'apps.authentication', 'apps.staff', 'apps.indicators', 'apps.tariffs', 'apps.payment', 'apps.courses', 'apps.portfolio', 'markup']
283REST_FRAMEWORK = {'DEFAULT_FILTER_BACKENDS': ('django_filters.rest_framework.DjangoFilterBackend',), 'EXCEPTION_HANDLER': 'shared.exceptions.exception_handler'}
284ROOT_URLCONF = 'app.urls'
285ROSETTA_CACHE_NAME = 'default'
286ROSETTA_SHOW_AT_ADMIN_PANEL = True
287ROSETTA_STORAGE_CLASS = 'rosetta.storage.CacheRosettaStorage'
288SECRET_KEY = '********************'
289SECURE_BROWSER_XSS_FILTER = False
290SECURE_CONTENT_TYPE_NOSNIFF = False
291SECURE_HSTS_INCLUDE_SUBDOMAINS = False
292SECURE_HSTS_PRELOAD = False
293SECURE_HSTS_SECONDS = 0
294SECURE_PROXY_SSL_HEADER = None
295SECURE_REDIRECT_EXEMPT = []
296SECURE_SSL_HOST = None
297SECURE_SSL_REDIRECT = False
298SEO_MODELS = ['pages.typical', 'pages.mainPage', 'blog.post', 'blog.review', 'indicators.indicatorPage', 'indicators.individualIndicatorPage', 'portfolio.portfolioPage']
299SEO_VIEWS_CHOICES = "(('blog', 'Blog'), ('reviews', 'Reviews'), ('faq', 'FAQ'))"
300SERVER_EMAIL = 'root@localhost'
301SESSION_CACHE_ALIAS = 'default'
302SESSION_COOKIE_AGE = 1209600
303SESSION_COOKIE_DOMAIN = None
304SESSION_COOKIE_HTTPONLY = True
305SESSION_COOKIE_NAME = 'sessionid'
306SESSION_COOKIE_PATH = '/'
307SESSION_COOKIE_SAMESITE = 'Lax'
308SESSION_COOKIE_SECURE = False
309SESSION_ENGINE = 'django.contrib.sessions.backends.db'
310SESSION_EXPIRE_AT_BROWSER_CLOSE = False
311SESSION_FILE_PATH = None
312SESSION_SAVE_EVERY_REQUEST = False
313SESSION_SERIALIZER = 'django.contrib.sessions.serializers.JSONSerializer'
314SETTINGS_MODULE = 'app.settings'
315SHORT_DATETIME_FORMAT = 'm/d/Y P'
316SHORT_DATE_FORMAT = 'm/d/Y'
317SIGNING_BACKEND = 'django.core.signing.TimestampSigner'
318SILENCED_SYSTEM_CHECKS = []
319SITE_ID = 1
320STATICFILES_DIRS = []
321STATICFILES_FINDERS = ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder']
322STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage'
323STATIC_ROOT = PosixPath('/home/tradefx/tradefx/tradefx/server/app/static')
324STATIC_URL = '/static/'
325TEMPLATES = [{'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']}}]
326TEST_NON_SERIALIZED_APPS = []
327TEST_RUNNER = 'django.test.runner.DiscoverRunner'
328THOUSAND_SEPARATOR = ','
329TIME_FORMAT = 'P'
330TIME_INPUT_FORMATS = ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M']
331TIME_ZONE = 'UTC'
332USE_I18N = True
333USE_L10N = True
334USE_THOUSAND_SEPARATOR = False
335USE_TZ = True
336USE_X_FORWARDED_HOST = False
337USE_X_FORWARDED_PORT = False
338WSGI_APPLICATION = 'app.wsgi.application'
339X_FRAME_OPTIONS = 'SAMEORIGIN'
340YEAR_MONTH_FORMAT = 'F Y'
341
342
343You're seeing this error because you have DEBUG = True in your
344Django settings file. Change that to False, and Django will
345display a standard page generated by the handler for this status code.