Advertisement
Guest User

Untitled

a guest
Mar 28th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 24.33 KB | None | 0 0
  1. AttributeError at /api/v1/cabinet/user/detail/
  2. 'NoneType' object has no attribute 'lower'
  3.  
  4. Request Method: GET
  5. Request URL: http://localhost:3030/api/v1/cabinet/user/detail/
  6. Django Version: 2.0.8
  7. Python Executable: /home/developer/.local/share/virtualenvs/server-XGenMObp/bin/python
  8. Python Version: 3.6.7
  9. Python Path: ['/home/developer/work/cub_birja/server', '/home/developer/.local/share/virtualenvs/server-XGenMObp/lib/python36.zip', '/home/developer/.local/share/virtualenvs/server-XGenMObp/lib/python3.6', '/home/developer/.local/share/virtualenvs/server-XGenMObp/lib/python3.6/lib-dynload', '/usr/lib/python3.6', '/home/developer/.local/share/virtualenvs/server-XGenMObp/lib/python3.6/site-packages', '/home/developer/work/cub_birja', '/home/developer/work/cub_birja/server', '/home/developer/work/cub_birja/server/app', '/home/developer/work/cub_birja/server']
  10. Server time: Чт, 28 Бер 2019 13:50:13 +0000
  11. Installed Applications:
  12. ['markup',
  13. 'apps.mailer',
  14. 'apps.menu',
  15. 'apps.pages',
  16. 'apps.staff',
  17. 'apps.chat',
  18. 'apps.trade',
  19. 'apps.administration',
  20. 'apps.statistics',
  21. 'apps.auctions',
  22. 'apps.wallets',
  23. 'apps.listing',
  24. 'shared',
  25. 'rosetta',
  26. 'ckeditor',
  27. 'parler',
  28. 'django_jinja',
  29. 'snowpenguin.django.recaptcha2',
  30. 'channels',
  31. 'rest_framework',
  32. 'rest_framework.authtoken',
  33. 'django_filters',
  34. 'adminsortable2',
  35. 'drf_yasg',
  36. 'django_admin_lightweight_date_hierarchy',
  37. 'inline_actions',
  38. 'codemirror2',
  39. 'robots',
  40. 'des',
  41. 'easy_thumbnails',
  42. 'constance',
  43. 'constance.backends.database',
  44. 'report_builder',
  45. 'rangefilter',
  46. 'admin_shortcuts',
  47. 'colorful',
  48. 'django_otp',
  49. 'django_otp.plugins.otp_totp',
  50. 'corsheaders',
  51. 'django.contrib.admin',
  52. 'django.contrib.auth',
  53. 'django.contrib.contenttypes',
  54. 'django.contrib.sessions',
  55. 'django.contrib.messages',
  56. 'django.contrib.staticfiles',
  57. 'django.contrib.sites']
  58. Installed Middleware:
  59. ['django.middleware.security.SecurityMiddleware',
  60. 'django.contrib.sessions.middleware.SessionMiddleware',
  61. 'django.middleware.locale.LocaleMiddleware',
  62. 'corsheaders.middleware.CorsMiddleware',
  63. 'django.middleware.common.CommonMiddleware',
  64. 'django.middleware.csrf.CsrfViewMiddleware',
  65. 'django.contrib.auth.middleware.AuthenticationMiddleware',
  66. 'django_otp.middleware.OTPMiddleware',
  67. 'django.contrib.messages.middleware.MessageMiddleware',
  68. 'django.middleware.clickjacking.XFrameOptionsMiddleware']
  69.  
  70.  
  71. Traceback:
  72.  
  73. File "/home/developer/.local/share/virtualenvs/server-XGenMObp/lib/python3.6/site-packages/django/core/handlers/exception.py" in inner
  74. 35. response = get_response(request)
  75.  
  76. File "/home/developer/.local/share/virtualenvs/server-XGenMObp/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
  77. 128. response = self.process_exception_by_middleware(e, request)
  78.  
  79. File "/home/developer/.local/share/virtualenvs/server-XGenMObp/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
  80. 126. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  81.  
  82. File "/home/developer/.local/share/virtualenvs/server-XGenMObp/lib/python3.6/site-packages/django/views/decorators/csrf.py" in wrapped_view
  83. 54. return view_func(*args, **kwargs)
  84.  
  85. File "/home/developer/.local/share/virtualenvs/server-XGenMObp/lib/python3.6/site-packages/django/views/generic/base.py" in view
  86. 69. return self.dispatch(request, *args, **kwargs)
  87.  
  88. File "/home/developer/.local/share/virtualenvs/server-XGenMObp/lib/python3.6/site-packages/rest_framework/views.py" in dispatch
  89. 495. response = self.handle_exception(exc)
  90.  
  91. File "/home/developer/.local/share/virtualenvs/server-XGenMObp/lib/python3.6/site-packages/rest_framework/views.py" in handle_exception
  92. 455. self.raise_uncaught_exception(exc)
  93.  
  94. File "/home/developer/.local/share/virtualenvs/server-XGenMObp/lib/python3.6/site-packages/rest_framework/views.py" in dispatch
  95. 492. response = handler(request, *args, **kwargs)
  96.  
  97. File "/home/developer/.local/share/virtualenvs/server-XGenMObp/lib/python3.6/site-packages/rest_framework/generics.py" in get
  98. 210. return self.retrieve(request, *args, **kwargs)
  99.  
  100. File "/home/developer/.local/share/virtualenvs/server-XGenMObp/lib/python3.6/site-packages/rest_framework/mixins.py" in retrieve
  101. 58. return Response(serializer.data)
  102.  
  103. File "/home/developer/.local/share/virtualenvs/server-XGenMObp/lib/python3.6/site-packages/rest_framework/serializers.py" in data
  104. 563. ret = super(Serializer, self).data
  105.  
  106. File "/home/developer/.local/share/virtualenvs/server-XGenMObp/lib/python3.6/site-packages/rest_framework/serializers.py" in data
  107. 262. self._data = self.to_representation(self.instance)
  108.  
  109. File "/home/developer/.local/share/virtualenvs/server-XGenMObp/lib/python3.6/site-packages/rest_framework/serializers.py" in to_representation
  110. 530. ret[field.field_name] = field.to_representation(attribute)
  111.  
  112. File "/home/developer/.local/share/virtualenvs/server-XGenMObp/lib/python3.6/site-packages/rest_framework/serializers.py" in to_representation
  113. 686. self.child.to_representation(item) for item in iterable
  114.  
  115. File "/home/developer/.local/share/virtualenvs/server-XGenMObp/lib/python3.6/site-packages/rest_framework/serializers.py" in <listcomp>
  116. 686. self.child.to_representation(item) for item in iterable
  117.  
  118. File "/home/developer/.local/share/virtualenvs/server-XGenMObp/lib/python3.6/site-packages/rest_framework/serializers.py" in to_representation
  119. 530. ret[field.field_name] = field.to_representation(attribute)
  120.  
  121. File "/home/developer/.local/share/virtualenvs/server-XGenMObp/lib/python3.6/site-packages/rest_framework/fields.py" in to_representation
  122. 1889. return method(value)
  123.  
  124. File "/home/developer/work/cub_birja/server/apps/staff/api/serializers.py" in get_in_krb
  125. 85. return krb.round(obj.entity.in_krb)
  126.  
  127. File "/home/developer/work/cub_birja/server/apps/staff/entities/wallet.py" in in_krb
  128. 125. if self.currency.system_name.lower() == 'krb':
  129.  
  130. Exception Type: AttributeError at /api/v1/cabinet/user/detail/
  131. Exception Value: 'NoneType' object has no attribute 'lower'
  132. Request information:
  133. USER: admin
  134.  
  135. GET: No GET data
  136.  
  137. POST: No POST data
  138.  
  139. FILES: No FILES data
  140.  
  141. COOKIES:
  142. _ga = 'GA1.1.387381023.1552919852'
  143. _gid = 'GA1.1.832536740.1553498806'
  144. csrftoken = 'uJLaLumLCqye4Z4HPGxhyYkzvtGH0Tl6qWYye7I6QO4wRzQzGk1CLiZz8w8iMU8T'
  145. sessionid = 'd004gyukcparg6whw5luxllt0gg21zg9'
  146.  
  147. META:
  148. CSRF_COOKIE = 'uJLaLumLCqye4Z4HPGxhyYkzvtGH0Tl6qWYye7I6QO4wRzQzGk1CLiZz8w8iMU8T'
  149. HTTP_ACCEPT = 'application/json, text/plain, */*'
  150. HTTP_ACCEPT_ENCODING = 'gzip, deflate, br'
  151. HTTP_ACCEPT_LANGUAGE = 'ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7'
  152. HTTP_CONNECTION = 'keep-alive'
  153. HTTP_COOKIE = '_ga=GA1.1.387381023.1552919852; _gid=GA1.1.832536740.1553498806; csrftoken=uJLaLumLCqye4Z4HPGxhyYkzvtGH0Tl6qWYye7I6QO4wRzQzGk1CLiZz8w8iMU8T; sessionid=d004gyukcparg6whw5luxllt0gg21zg9'
  154. HTTP_HOST = 'localhost:3030'
  155. HTTP_REFERER = 'http://localhost:3030/cabinet/finances/'
  156. HTTP_USER_AGENT = 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.86 Safari/537.36'
  157. PATH_INFO = '/api/v1/cabinet/user/detail/'
  158. QUERY_STRING = ''
  159. REMOTE_ADDR = '127.0.0.1'
  160. REMOTE_HOST = '127.0.0.1'
  161. REMOTE_PORT = 49198
  162. REQUEST_METHOD = 'GET'
  163. SCRIPT_NAME = ''
  164. SERVER_NAME = '127.0.0.1'
  165. SERVER_PORT = '3030'
  166. wsgi.multiprocess = True
  167. wsgi.multithread = True
  168.  
  169. Settings:
  170. Using settings module app.settings
  171. ABSOLUTE_URL_OVERRIDES = {}
  172. ADMINS = []
  173. ADMIN_SHORTCUTS = [{'title': 'Requests', 'shortcuts': [{'url_name': 'admin:staff_pinrequest_changelist', 'url_extra': '?status__exact=opened', 'title': 'Opened pin requests', 'count_new': 'apps.staff.admin_shortcuts.opened_pin_requests'}, {'url_name': 'admin:staff_userverificationrequest_changelist', 'url_extra': '?status__exact=opened', 'title': 'Opened user verification requests', 'count_new': 'apps.staff.admin_shortcuts.opened_user_verification_requests'}]}, {'title': 'Website', 'shortcuts': [{'url_name': 'admin:staff_userbalance_changelist', 'url_extra': '?user__isnull=True', 'title': 'Website balances'}]}]
  174. ALLOWED_HOSTS = ['*']
  175. APPEND_SLASH = True
  176. ASGI_APPLICATION = 'app.routing.application'
  177. AUTHENTICATION_BACKENDS = ['django.contrib.auth.backends.ModelBackend']
  178. AUTH_PASSWORD_VALIDATORS = '********************'
  179. AUTH_USER_MODEL = 'staff.User'
  180. BASE_DIR = PosixPath('/home/developer/work/cub_birja/server/app/settings/default.py')
  181. BASE_ROOT = PosixPath('/home/developer/work/cub_birja/server/app')
  182. CACHES = {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache', 'LOCATION': 'unique-snowflake'}}
  183. CACHE_MIDDLEWARE_ALIAS = 'default'
  184. CACHE_MIDDLEWARE_KEY_PREFIX = '********************'
  185. CACHE_MIDDLEWARE_SECONDS = 600
  186. CELERY_BROKER_URL = 'redis://localhost:6379/1'
  187. CHANNEL_LAYERS = {'default': {'BACKEND': 'channels_redis.core.RedisChannelLayer', 'CONFIG': {'hosts': [('localhost', 6379)], 'capacity': 10000}}}
  188. CONSTANCE_ADDITIONAL_FIELDS = {'email_field': [<class 'django.forms.fields.EmailField'>, {}], 'image_field': [<class 'django.forms.fields.ImageField'>, {}], 'admin_foreign_key': '********************'}
  189. CONSTANCE_BACKEND = 'constance.backends.database.DatabaseBackend'
  190. CONSTANCE_CONFIG = {'ADMIN_EMAIL': ('admin@admin.com', 'Admin email', 'email_field'), 'LOGO': ('', 'Website logo', 'image_field'), 'NIGHT_LOGO': ('', 'Website night logo', 'image_field'), 'FAQ_IMAGE': ('', 'FAQ image', 'image_field'), 'TELEGRAM': ('telegram.me', 'Telegram link', <class 'str'>), 'ADMIN_MESSENGER': ('', 'Admin account to send messages', 'admin_foreign_key'), 'ADMINISTRATION_DAY': (27, 'Day when the administration is done', <class 'int'>), 'AUCTIONS_DAY': (25, 'Day when the auctions is over', <class 'int'>), 'TOTAL_DICES': (10000, 'Total dices amount', <class 'int'>), 'FINANCE_SERVICE_TOKEN': '********************', 'FINANCE_SERVICE_URL': ('http://localhost:8001', 'Finance service url', <class 'str'>), 'KRB_MINIMUM_CONFIRMATIONS': (5, 'Karbowanec minimum confirmations', <class 'int'>), 'BTC_MINIMUM_CONFIRMATIONS': (5, 'Bitcoin minimum confirmations', <class 'int'>), 'LTC_MINIMUM_CONFIRMATIONS': (5, 'Litecoin minimum confirmations', <class 'int'>), 'DOGE_MINIMUM_CONFIRMATIONS': (5, 'Litecoin minimum confirmations', <class 'int'>), 'ETH_MINIMUM_CONFIRMATIONS': (5, 'Ethereum minimum confirmations', <class 'int'>), 'ADA_MINIMUM_CONFIRMATIONS': (5, 'Cardano minimum confirmations', <class 'int'>), 'XEM_MINIMUM_CONFIRMATIONS': (5, 'NEM minimum confirmations', <class 'int'>), 'LISTING_BALANCE_USER': ('', 'Admin account to store listing money', 'admin_foreign_key')}
  191. CONSTANCE_DATABASE_CACHE_BACKEND = None
  192. CORS_ORIGIN_ALLOW_ALL = True
  193. CORS_URLS_REGEX = '^/public/.*$'
  194. CSRF_COOKIE_AGE = 31449600
  195. CSRF_COOKIE_DOMAIN = None
  196. CSRF_COOKIE_HTTPONLY = False
  197. CSRF_COOKIE_NAME = 'csrftoken'
  198. CSRF_COOKIE_PATH = '/'
  199. CSRF_COOKIE_SECURE = False
  200. CSRF_FAILURE_VIEW = 'django.views.csrf.csrf_failure'
  201. CSRF_HEADER_NAME = 'HTTP_X_CSRFTOKEN'
  202. CSRF_TRUSTED_ORIGINS = []
  203. CSRF_USE_SESSIONS = False
  204. DATABASES = {'default': {'NAME': 'birja', 'USER': 'admin', 'PASSWORD': '********************', 'HOST': '127.0.0.1', 'PORT': 5432, 'ENGINE': 'django.db.backends.postgresql', 'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'OPTIONS': {}, 'TIME_ZONE': None, 'TEST': {'CHARSET': None, 'COLLATION': None, 'NAME': None, 'MIRROR': None}}}
  205. DATABASE_ROUTERS = []
  206. DATA_UPLOAD_MAX_MEMORY_SIZE = 2621440
  207. DATA_UPLOAD_MAX_NUMBER_FIELDS = 100000
  208. DATETIME_FORMAT = 'N j, Y, P'
  209. DATETIME_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']
  210. DATE_FORMAT = 'N j, Y'
  211. DATE_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']
  212. DDF_FIELD_FIXTURES = {'django.contrib.postgres.fields.ranges.IntegerRangeField': {'ddf_fixture': <function <lambda> at 0x7f3214ddf400>}}
  213. DEBUG = 'True'
  214. DEBUG_PROPAGATE_EXCEPTIONS = False
  215. DECIMAL_SEPARATOR = '.'
  216. DEFAULT_CHARSET = 'utf-8'
  217. DEFAULT_CONTENT_TYPE = 'text/html'
  218. DEFAULT_EXCEPTION_REPORTER_FILTER = 'django.views.debug.SafeExceptionReporterFilter'
  219. DEFAULT_EXTENSIONS = ['jinja2.ext.do', 'jinja2.ext.loopcontrols', 'jinja2.ext.with_', 'jinja2.ext.i18n', 'jinja2.ext.autoescape', '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']
  220. DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage'
  221. DEFAULT_FROM_EMAIL = 'webmaster@localhost'
  222. DEFAULT_INDEX_TABLESPACE = ''
  223. DEFAULT_TABLESPACE = ''
  224. DISALLOWED_USER_AGENTS = []
  225. EMAIL_BACKEND = 'des.backends.ConfiguredEmailBackend'
  226. EMAIL_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'}
  227. EMAIL_FILE_PATH = ''
  228. EMAIL_HOST = '127.0.0.1'
  229. EMAIL_HOST_PASSWORD = '********************'
  230. EMAIL_HOST_USER = None
  231. EMAIL_PORT = None
  232. EMAIL_SSL_CERTFILE = None
  233. EMAIL_SSL_KEYFILE = '********************'
  234. EMAIL_SUBJECT_PREFIX = '[Django] '
  235. EMAIL_TIMEOUT = None
  236. EMAIL_USE_LOCALTIME = False
  237. EMAIL_USE_SSL = False
  238. EMAIL_USE_TLS = False
  239. FILE_CHARSET = 'utf-8'
  240. FILE_UPLOAD_DIRECTORY_PERMISSIONS = None
  241. FILE_UPLOAD_HANDLERS = ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler']
  242. FILE_UPLOAD_MAX_MEMORY_SIZE = 2621440
  243. FILE_UPLOAD_PERMISSIONS = None
  244. FILE_UPLOAD_TEMP_DIR = None
  245. FINANCE_AUTH_LOGIN = ''
  246. FINANCE_AUTH_PASSWORD = '********************'
  247. FIRST_DAY_OF_WEEK = 0
  248. FIXTURE_DIRS = []
  249. FORCE_SCRIPT_NAME = None
  250. FORMAT_MODULE_PATH = None
  251. FORM_RENDERER = 'django.forms.renderers.DjangoTemplates'
  252. GEOIP_PATH = '/home/developer/work/cub_birja/server/app'
  253. IGNORABLE_404_URLS = []
  254. INSTALLED_APPS = ['markup', 'apps.mailer', 'apps.menu', 'apps.pages', 'apps.staff', 'apps.chat', 'apps.trade', 'apps.administration', 'apps.statistics', 'apps.auctions', 'apps.wallets', 'apps.listing', 'shared', 'rosetta', 'ckeditor', 'parler', 'django_jinja', 'snowpenguin.django.recaptcha2', 'channels', 'rest_framework', 'rest_framework.authtoken', 'django_filters', 'adminsortable2', 'drf_yasg', 'django_admin_lightweight_date_hierarchy', 'inline_actions', 'codemirror2', 'robots', 'des', 'easy_thumbnails', 'constance', 'constance.backends.database', 'report_builder', 'rangefilter', 'admin_shortcuts', 'colorful', 'django_otp', 'django_otp.plugins.otp_totp', 'corsheaders', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.sites']
  255. INTERNAL_IPS = []
  256. JWT_AUTH = {'JWT_ALLOW_REFRESH': True, 'JWT_EXPIRATION_DELTA': datetime.timedelta(1)}
  257. LANGUAGES = "(('uk', 'Українська'), ('ru', 'Російська'), ('en', 'Англійська'))"
  258. LANGUAGES_BIDI = ['he', 'ar', 'fa', 'ur']
  259. LANGUAGE_CODE = 'uk'
  260. LANGUAGE_COOKIE_AGE = None
  261. LANGUAGE_COOKIE_DOMAIN = None
  262. LANGUAGE_COOKIE_NAME = 'django_language'
  263. LANGUAGE_COOKIE_PATH = '/'
  264. LOCALE_PATHS = "(PosixPath('/home/developer/work/cub_birja/server/app/locale'), PosixPath('/home/developer/work/cub_birja/server/app/drf_locale'))"
  265. LOGGING = {}
  266. LOGGING_CONFIG = 'logging.config.dictConfig'
  267. LOGIN_REDIRECT_URL = '/cabinet/'
  268. LOGIN_URL = '/'
  269. LOGOUT_REDIRECT_URL = 'pages:index'
  270. MAIL_INSTANT_SEND = True
  271. MAIL_TEMPLATE_CHOICES = Choices(('login', 'login', 'Login'), ('registration', 'registration', 'Registration'), ('password_reset', 'password_reset', 'Перевстановлення паролю'), ('password_reseted', 'password_reseted', 'Password reseted'), ('password_change', 'password_change', 'Зміна паролю'), ('pin_change', 'pin_change', 'Pin change'), ('pin_changed', 'pin_changed', 'Pin changed'), ('verification_request', 'verification_request', 'New user request verification'), ('auction_finished', 'auction_finished', 'Auction finished results'), ('balances_holded_admin', 'balances_holded_admin', 'Balance holded admin notification'), ('balances_holded', 'balances_holded', 'Balance holded notification'), ('interrupted_bet', 'interrupted_bet', 'Bet was interrupted by another user'), ('feedback', 'feedback', 'Feedback'), ('new_withdraw_admin', 'new_withdraw_admin', 'Admin notification about withdraw order'), ('withdraw_order_send', 'withdraw_order_send', 'Withdraw transaction was sent'))
  272. MAIL_TEMPLATE_CONTEXT = {'login': {'ip': 'User login ip', 'country': 'User login country', 'username': 'User username'}, 'registration': {'email': 'User email', 'username': 'User username', 'url': 'Account activation url', 'site_name': 'Webiste name', 'pin_code': 'User pincode'}, 'password_reset': '********************', 'password_change': '********************', 'password_reseted': '********************', 'pin_change': {'reason': 'Reason to change password', 'username': 'User username', 'email': 'User email'}, 'pin_changed': {'pin': 'New pincode'}, 'verification_request': {'username': 'User username', 'field_label': 'User field name'}, 'auction_finished': {}, 'balances_holded_admin': {'for_hours': 'Holding time', 'reason': 'Holding reason', 'username': 'User whose balances were holded'}, 'balances_holded': {'for_hours': 'Holding time', 'reason': 'Holding reason', 'username': 'User whose balances were holded'}, 'interrupted_bet': {'lot_id': 'Lot id', 'bet_value': 'User bet value'}, 'feedback': {'name': 'User name', 'email': 'User email', 'phone': 'User phone', 'question': 'User question'}, 'new_withdraw_admin': {'id': 'Transaction id', 'user_id': 'Transation user id', 'username': 'Transaction user username', 'currency': 'Transaction currency', 'sum': 'Transaction sum', 'fee': 'Transaction fee', 'created_at': 'Transaction creation time'}, 'withdraw_order_send': {'hash': 'Transaction hash', 'username': 'Transaction user'}}
  273. MANAGERS = []
  274. MEDIA_ROOT = PosixPath('/home/developer/work/cub_birja/server/app/uploads')
  275. MEDIA_URL = '/uploads/'
  276. MESSAGE_STORAGE = 'django.contrib.messages.storage.fallback.FallbackStorage'
  277. MIDDLEWARE = ['django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.locale.LocaleMiddleware', 'corsheaders.middleware.CorsMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django_otp.middleware.OTPMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware']
  278. MIGRATION_MODULES = {}
  279. MONTH_DAY_FORMAT = 'F j'
  280. NUMBER_GROUPING = 0
  281. PARLER_LANGUAGES = {None: ({'code': 'en', 'fallbacks': ['uk'], 'hide_untranslated': False}, {'code': 'ru', 'fallbacks': ['uk'], 'hide_untranslated': False}, {'code': 'uk', 'fallbacks': ['uk'], 'hide_untranslated': False}), 1: ({'code': 'en', 'fallbacks': ['uk'], 'hide_untranslated': False}, {'code': 'ru', 'fallbacks': ['uk'], 'hide_untranslated': False}, {'code': 'uk', 'fallbacks': ['uk'], 'hide_untranslated': False}), 'default': {'fallbacks': ['uk'], 'hide_untranslated': False, 'code': 'uk'}}
  282. PASSWORD_HASHERS = '********************'
  283. PASSWORD_RESET_TIMEOUT_DAYS = '********************'
  284. PREPEND_WWW = False
  285. PROJECT_APPS = ['markup', 'apps.mailer', 'apps.menu', 'apps.pages', 'apps.staff', 'apps.chat', 'apps.trade', 'apps.administration', 'apps.statistics', 'apps.auctions', 'apps.wallets', 'apps.listing', 'shared']
  286. RECAPTCHA_PRIVATE_KEY = '********************'
  287. RECAPTCHA_PUBLIC_KEY = '********************'
  288. REDOC_SETTINGS = {}
  289. REST_FRAMEWORK = {'DEFAULT_RENDERER_CLASSES': ('rest_framework.renderers.JSONRenderer',), 'DEFAULT_AUTHENTICATION_CLASSES': ('rest_framework.authentication.SessionAuthentication', 'rest_framework.authentication.BasicAuthentication'), 'DEFAULT_THROTTLE_CLASSES': ('shared.api.throttling.CustomRateScopedRateThrottle',), 'DEFAULT_THROTTLE_RATES': {'public': '1/t'}}
  290. ROBOTS_USE_HOST = True
  291. ROBOTS_USE_SCHEME_IN_HOST = True
  292. ROOT_URLCONF = 'app.urls'
  293. SECRET_KEY = '********************'
  294. SECURE_BROWSER_XSS_FILTER = False
  295. SECURE_CONTENT_TYPE_NOSNIFF = False
  296. SECURE_HSTS_INCLUDE_SUBDOMAINS = False
  297. SECURE_HSTS_PRELOAD = False
  298. SECURE_HSTS_SECONDS = 0
  299. SECURE_PROXY_SSL_HEADER = None
  300. SECURE_REDIRECT_EXEMPT = []
  301. SECURE_SSL_HOST = None
  302. SECURE_SSL_REDIRECT = False
  303. SERVER_EMAIL = 'root@localhost'
  304. SESSION_CACHE_ALIAS = 'default'
  305. SESSION_COOKIE_AGE = 1209600
  306. SESSION_COOKIE_DOMAIN = None
  307. SESSION_COOKIE_HTTPONLY = True
  308. SESSION_COOKIE_NAME = 'sessionid'
  309. SESSION_COOKIE_PATH = '/'
  310. SESSION_COOKIE_SECURE = False
  311. SESSION_ENGINE = 'django.contrib.sessions.backends.db'
  312. SESSION_EXPIRE_AT_BROWSER_CLOSE = True
  313. SESSION_FILE_PATH = None
  314. SESSION_SAVE_EVERY_REQUEST = False
  315. SESSION_SERIALIZER = 'django.contrib.sessions.serializers.JSONSerializer'
  316. SETTINGS_MODULE = 'app.settings'
  317. SHORT_DATETIME_FORMAT = 'm/d/Y P'
  318. SHORT_DATE_FORMAT = 'm/d/Y'
  319. SIGNING_BACKEND = 'django.core.signing.TimestampSigner'
  320. SILENCED_SYSTEM_CHECKS = []
  321. SITEVERIFY_PRIVATE_KEY = '********************'
  322. SITEVERIFY_PUBLIC_KEY = '********************'
  323. SITE_ID = 1
  324. SMSFLY_LOGIN = '380994491984'
  325. SMSFLY_PASSWORD = '********************'
  326. STATICFILES_DIRS = []
  327. STATICFILES_FINDERS = ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder']
  328. STATICFILES_STORAGE = 'markup.storages.SafeManifestStaticFilesStorage'
  329. STATIC_ROOT = PosixPath('/home/developer/work/cub_birja/server/app/static')
  330. STATIC_URL = '/static/'
  331. SWAGGER_SETTINGS = {'SECURITY_DEFINITIONS': {'JWT token': '********************', 'API key': '********************', 'Signature': '********************'}, 'USE_SESSION_AUTH': False, 'DEFAULT_INFO': 'app.urls.Info', 'DEFAULT_GENERATOR_CLASS': 'app.docs.PublicOpenAPISchemaGenerator', 'SUPPORTED_SUBMIT_METHODS': []}
  332. TEMPLATES = [{'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', 'shared.context_processors.recaptcha_public_key', 'constance.context_processors.config'], 'extensions': ['jinja2.ext.do', 'jinja2.ext.loopcontrols', 'jinja2.ext.with_', 'jinja2.ext.i18n', 'jinja2.ext.autoescape', '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', 'constance.context_processors.config']}}]
  333. TEST_NON_SERIALIZED_APPS = []
  334. TEST_RUNNER = 'django.test.runner.DiscoverRunner'
  335. THOUSAND_SEPARATOR = ','
  336. TIME_FORMAT = 'P'
  337. TIME_INPUT_FORMATS = ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M']
  338. TIME_ZONE = 'UTC'
  339. USE_ETAGS = False
  340. USE_I18N = True
  341. USE_L10N = True
  342. USE_THOUSAND_SEPARATOR = False
  343. USE_TZ = True
  344. USE_X_FORWARDED_HOST = False
  345. USE_X_FORWARDED_PORT = False
  346. WSGI_APPLICATION = 'app.wsgi.application'
  347. X_FRAME_OPTIONS = 'SAMEORIGIN'
  348. YEAR_MONTH_FORMAT = 'F Y'
  349.  
  350.  
  351. You're seeing this error because you have DEBUG = True in your
  352. Django settings file. Change that to False, and Django will
  353. display a standard page generated by the handler for this status code.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement