Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- AttributeError at /api/v1/cabinet/user/detail/
- 'NoneType' object has no attribute 'lower'
- Request Method: GET
- Request URL: http://localhost:3030/api/v1/cabinet/user/detail/
- Django Version: 2.0.8
- Python Executable: /home/developer/.local/share/virtualenvs/server-XGenMObp/bin/python
- Python Version: 3.6.7
- 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']
- Server time: Чт, 28 Бер 2019 13:50:13 +0000
- Installed Applications:
- ['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']
- Installed 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']
- Traceback:
- File "/home/developer/.local/share/virtualenvs/server-XGenMObp/lib/python3.6/site-packages/django/core/handlers/exception.py" in inner
- 35. response = get_response(request)
- File "/home/developer/.local/share/virtualenvs/server-XGenMObp/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
- 128. response = self.process_exception_by_middleware(e, request)
- File "/home/developer/.local/share/virtualenvs/server-XGenMObp/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
- 126. response = wrapped_callback(request, *callback_args, **callback_kwargs)
- File "/home/developer/.local/share/virtualenvs/server-XGenMObp/lib/python3.6/site-packages/django/views/decorators/csrf.py" in wrapped_view
- 54. return view_func(*args, **kwargs)
- File "/home/developer/.local/share/virtualenvs/server-XGenMObp/lib/python3.6/site-packages/django/views/generic/base.py" in view
- 69. return self.dispatch(request, *args, **kwargs)
- File "/home/developer/.local/share/virtualenvs/server-XGenMObp/lib/python3.6/site-packages/rest_framework/views.py" in dispatch
- 495. response = self.handle_exception(exc)
- File "/home/developer/.local/share/virtualenvs/server-XGenMObp/lib/python3.6/site-packages/rest_framework/views.py" in handle_exception
- 455. self.raise_uncaught_exception(exc)
- File "/home/developer/.local/share/virtualenvs/server-XGenMObp/lib/python3.6/site-packages/rest_framework/views.py" in dispatch
- 492. response = handler(request, *args, **kwargs)
- File "/home/developer/.local/share/virtualenvs/server-XGenMObp/lib/python3.6/site-packages/rest_framework/generics.py" in get
- 210. return self.retrieve(request, *args, **kwargs)
- File "/home/developer/.local/share/virtualenvs/server-XGenMObp/lib/python3.6/site-packages/rest_framework/mixins.py" in retrieve
- 58. return Response(serializer.data)
- File "/home/developer/.local/share/virtualenvs/server-XGenMObp/lib/python3.6/site-packages/rest_framework/serializers.py" in data
- 563. ret = super(Serializer, self).data
- File "/home/developer/.local/share/virtualenvs/server-XGenMObp/lib/python3.6/site-packages/rest_framework/serializers.py" in data
- 262. self._data = self.to_representation(self.instance)
- File "/home/developer/.local/share/virtualenvs/server-XGenMObp/lib/python3.6/site-packages/rest_framework/serializers.py" in to_representation
- 530. ret[field.field_name] = field.to_representation(attribute)
- File "/home/developer/.local/share/virtualenvs/server-XGenMObp/lib/python3.6/site-packages/rest_framework/serializers.py" in to_representation
- 686. self.child.to_representation(item) for item in iterable
- File "/home/developer/.local/share/virtualenvs/server-XGenMObp/lib/python3.6/site-packages/rest_framework/serializers.py" in <listcomp>
- 686. self.child.to_representation(item) for item in iterable
- File "/home/developer/.local/share/virtualenvs/server-XGenMObp/lib/python3.6/site-packages/rest_framework/serializers.py" in to_representation
- 530. ret[field.field_name] = field.to_representation(attribute)
- File "/home/developer/.local/share/virtualenvs/server-XGenMObp/lib/python3.6/site-packages/rest_framework/fields.py" in to_representation
- 1889. return method(value)
- File "/home/developer/work/cub_birja/server/apps/staff/api/serializers.py" in get_in_krb
- 85. return krb.round(obj.entity.in_krb)
- File "/home/developer/work/cub_birja/server/apps/staff/entities/wallet.py" in in_krb
- 125. if self.currency.system_name.lower() == 'krb':
- Exception Type: AttributeError at /api/v1/cabinet/user/detail/
- Exception Value: 'NoneType' object has no attribute 'lower'
- Request information:
- USER: admin
- GET: No GET data
- POST: No POST data
- FILES: No FILES data
- COOKIES:
- _ga = 'GA1.1.387381023.1552919852'
- _gid = 'GA1.1.832536740.1553498806'
- csrftoken = 'uJLaLumLCqye4Z4HPGxhyYkzvtGH0Tl6qWYye7I6QO4wRzQzGk1CLiZz8w8iMU8T'
- sessionid = 'd004gyukcparg6whw5luxllt0gg21zg9'
- META:
- CSRF_COOKIE = 'uJLaLumLCqye4Z4HPGxhyYkzvtGH0Tl6qWYye7I6QO4wRzQzGk1CLiZz8w8iMU8T'
- HTTP_ACCEPT = 'application/json, text/plain, */*'
- HTTP_ACCEPT_ENCODING = 'gzip, deflate, br'
- HTTP_ACCEPT_LANGUAGE = 'ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7'
- HTTP_CONNECTION = 'keep-alive'
- HTTP_COOKIE = '_ga=GA1.1.387381023.1552919852; _gid=GA1.1.832536740.1553498806; csrftoken=uJLaLumLCqye4Z4HPGxhyYkzvtGH0Tl6qWYye7I6QO4wRzQzGk1CLiZz8w8iMU8T; sessionid=d004gyukcparg6whw5luxllt0gg21zg9'
- HTTP_HOST = 'localhost:3030'
- HTTP_REFERER = 'http://localhost:3030/cabinet/finances/'
- HTTP_USER_AGENT = 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.86 Safari/537.36'
- PATH_INFO = '/api/v1/cabinet/user/detail/'
- QUERY_STRING = ''
- REMOTE_ADDR = '127.0.0.1'
- REMOTE_HOST = '127.0.0.1'
- REMOTE_PORT = 49198
- REQUEST_METHOD = 'GET'
- SCRIPT_NAME = ''
- SERVER_NAME = '127.0.0.1'
- SERVER_PORT = '3030'
- wsgi.multiprocess = True
- wsgi.multithread = True
- Settings:
- Using settings module app.settings
- ABSOLUTE_URL_OVERRIDES = {}
- ADMINS = []
- 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'}]}]
- ALLOWED_HOSTS = ['*']
- APPEND_SLASH = True
- ASGI_APPLICATION = 'app.routing.application'
- AUTHENTICATION_BACKENDS = ['django.contrib.auth.backends.ModelBackend']
- AUTH_PASSWORD_VALIDATORS = '********************'
- AUTH_USER_MODEL = 'staff.User'
- BASE_DIR = PosixPath('/home/developer/work/cub_birja/server/app/settings/default.py')
- BASE_ROOT = PosixPath('/home/developer/work/cub_birja/server/app')
- CACHES = {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache', 'LOCATION': 'unique-snowflake'}}
- CACHE_MIDDLEWARE_ALIAS = 'default'
- CACHE_MIDDLEWARE_KEY_PREFIX = '********************'
- CACHE_MIDDLEWARE_SECONDS = 600
- CELERY_BROKER_URL = 'redis://localhost:6379/1'
- CHANNEL_LAYERS = {'default': {'BACKEND': 'channels_redis.core.RedisChannelLayer', 'CONFIG': {'hosts': [('localhost', 6379)], 'capacity': 10000}}}
- CONSTANCE_ADDITIONAL_FIELDS = {'email_field': [<class 'django.forms.fields.EmailField'>, {}], 'image_field': [<class 'django.forms.fields.ImageField'>, {}], 'admin_foreign_key': '********************'}
- CONSTANCE_BACKEND = 'constance.backends.database.DatabaseBackend'
- 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')}
- CONSTANCE_DATABASE_CACHE_BACKEND = None
- CORS_ORIGIN_ALLOW_ALL = True
- CORS_URLS_REGEX = '^/public/.*$'
- CSRF_COOKIE_AGE = 31449600
- CSRF_COOKIE_DOMAIN = None
- CSRF_COOKIE_HTTPONLY = False
- CSRF_COOKIE_NAME = 'csrftoken'
- CSRF_COOKIE_PATH = '/'
- CSRF_COOKIE_SECURE = False
- CSRF_FAILURE_VIEW = 'django.views.csrf.csrf_failure'
- CSRF_HEADER_NAME = 'HTTP_X_CSRFTOKEN'
- CSRF_TRUSTED_ORIGINS = []
- CSRF_USE_SESSIONS = False
- 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}}}
- DATABASE_ROUTERS = []
- DATA_UPLOAD_MAX_MEMORY_SIZE = 2621440
- DATA_UPLOAD_MAX_NUMBER_FIELDS = 100000
- DATETIME_FORMAT = 'N j, Y, P'
- 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']
- DATE_FORMAT = 'N j, Y'
- 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']
- DDF_FIELD_FIXTURES = {'django.contrib.postgres.fields.ranges.IntegerRangeField': {'ddf_fixture': <function <lambda> at 0x7f3214ddf400>}}
- DEBUG = 'True'
- DEBUG_PROPAGATE_EXCEPTIONS = False
- DECIMAL_SEPARATOR = '.'
- DEFAULT_CHARSET = 'utf-8'
- DEFAULT_CONTENT_TYPE = 'text/html'
- DEFAULT_EXCEPTION_REPORTER_FILTER = 'django.views.debug.SafeExceptionReporterFilter'
- 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']
- DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage'
- DEFAULT_FROM_EMAIL = 'webmaster@localhost'
- DEFAULT_INDEX_TABLESPACE = ''
- DEFAULT_TABLESPACE = ''
- DISALLOWED_USER_AGENTS = []
- EMAIL_BACKEND = 'des.backends.ConfiguredEmailBackend'
- 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'}
- EMAIL_FILE_PATH = ''
- EMAIL_HOST = '127.0.0.1'
- EMAIL_HOST_PASSWORD = '********************'
- EMAIL_HOST_USER = None
- EMAIL_PORT = None
- EMAIL_SSL_CERTFILE = None
- EMAIL_SSL_KEYFILE = '********************'
- EMAIL_SUBJECT_PREFIX = '[Django] '
- EMAIL_TIMEOUT = None
- EMAIL_USE_LOCALTIME = False
- EMAIL_USE_SSL = False
- EMAIL_USE_TLS = False
- FILE_CHARSET = 'utf-8'
- FILE_UPLOAD_DIRECTORY_PERMISSIONS = None
- FILE_UPLOAD_HANDLERS = ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler']
- FILE_UPLOAD_MAX_MEMORY_SIZE = 2621440
- FILE_UPLOAD_PERMISSIONS = None
- FILE_UPLOAD_TEMP_DIR = None
- FINANCE_AUTH_LOGIN = ''
- FINANCE_AUTH_PASSWORD = '********************'
- FIRST_DAY_OF_WEEK = 0
- FIXTURE_DIRS = []
- FORCE_SCRIPT_NAME = None
- FORMAT_MODULE_PATH = None
- FORM_RENDERER = 'django.forms.renderers.DjangoTemplates'
- GEOIP_PATH = '/home/developer/work/cub_birja/server/app'
- IGNORABLE_404_URLS = []
- 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']
- INTERNAL_IPS = []
- JWT_AUTH = {'JWT_ALLOW_REFRESH': True, 'JWT_EXPIRATION_DELTA': datetime.timedelta(1)}
- LANGUAGES = "(('uk', 'Українська'), ('ru', 'Російська'), ('en', 'Англійська'))"
- LANGUAGES_BIDI = ['he', 'ar', 'fa', 'ur']
- LANGUAGE_CODE = 'uk'
- LANGUAGE_COOKIE_AGE = None
- LANGUAGE_COOKIE_DOMAIN = None
- LANGUAGE_COOKIE_NAME = 'django_language'
- LANGUAGE_COOKIE_PATH = '/'
- LOCALE_PATHS = "(PosixPath('/home/developer/work/cub_birja/server/app/locale'), PosixPath('/home/developer/work/cub_birja/server/app/drf_locale'))"
- LOGGING = {}
- LOGGING_CONFIG = 'logging.config.dictConfig'
- LOGIN_REDIRECT_URL = '/cabinet/'
- LOGIN_URL = '/'
- LOGOUT_REDIRECT_URL = 'pages:index'
- MAIL_INSTANT_SEND = True
- 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'))
- 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'}}
- MANAGERS = []
- MEDIA_ROOT = PosixPath('/home/developer/work/cub_birja/server/app/uploads')
- MEDIA_URL = '/uploads/'
- MESSAGE_STORAGE = 'django.contrib.messages.storage.fallback.FallbackStorage'
- 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']
- MIGRATION_MODULES = {}
- MONTH_DAY_FORMAT = 'F j'
- NUMBER_GROUPING = 0
- 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'}}
- PASSWORD_HASHERS = '********************'
- PASSWORD_RESET_TIMEOUT_DAYS = '********************'
- PREPEND_WWW = False
- 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']
- RECAPTCHA_PRIVATE_KEY = '********************'
- RECAPTCHA_PUBLIC_KEY = '********************'
- REDOC_SETTINGS = {}
- 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'}}
- ROBOTS_USE_HOST = True
- ROBOTS_USE_SCHEME_IN_HOST = True
- ROOT_URLCONF = 'app.urls'
- SECRET_KEY = '********************'
- SECURE_BROWSER_XSS_FILTER = False
- SECURE_CONTENT_TYPE_NOSNIFF = False
- SECURE_HSTS_INCLUDE_SUBDOMAINS = False
- SECURE_HSTS_PRELOAD = False
- SECURE_HSTS_SECONDS = 0
- SECURE_PROXY_SSL_HEADER = None
- SECURE_REDIRECT_EXEMPT = []
- SECURE_SSL_HOST = None
- SECURE_SSL_REDIRECT = False
- SERVER_EMAIL = 'root@localhost'
- SESSION_CACHE_ALIAS = 'default'
- SESSION_COOKIE_AGE = 1209600
- SESSION_COOKIE_DOMAIN = None
- SESSION_COOKIE_HTTPONLY = True
- SESSION_COOKIE_NAME = 'sessionid'
- SESSION_COOKIE_PATH = '/'
- SESSION_COOKIE_SECURE = False
- SESSION_ENGINE = 'django.contrib.sessions.backends.db'
- SESSION_EXPIRE_AT_BROWSER_CLOSE = True
- SESSION_FILE_PATH = None
- SESSION_SAVE_EVERY_REQUEST = False
- SESSION_SERIALIZER = 'django.contrib.sessions.serializers.JSONSerializer'
- SETTINGS_MODULE = 'app.settings'
- SHORT_DATETIME_FORMAT = 'm/d/Y P'
- SHORT_DATE_FORMAT = 'm/d/Y'
- SIGNING_BACKEND = 'django.core.signing.TimestampSigner'
- SILENCED_SYSTEM_CHECKS = []
- SITEVERIFY_PRIVATE_KEY = '********************'
- SITEVERIFY_PUBLIC_KEY = '********************'
- SITE_ID = 1
- SMSFLY_LOGIN = '380994491984'
- SMSFLY_PASSWORD = '********************'
- STATICFILES_DIRS = []
- STATICFILES_FINDERS = ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder']
- STATICFILES_STORAGE = 'markup.storages.SafeManifestStaticFilesStorage'
- STATIC_ROOT = PosixPath('/home/developer/work/cub_birja/server/app/static')
- STATIC_URL = '/static/'
- 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': []}
- 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']}}]
- TEST_NON_SERIALIZED_APPS = []
- TEST_RUNNER = 'django.test.runner.DiscoverRunner'
- THOUSAND_SEPARATOR = ','
- TIME_FORMAT = 'P'
- TIME_INPUT_FORMATS = ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M']
- TIME_ZONE = 'UTC'
- USE_ETAGS = False
- USE_I18N = True
- USE_L10N = True
- USE_THOUSAND_SEPARATOR = False
- USE_TZ = True
- USE_X_FORWARDED_HOST = False
- USE_X_FORWARDED_PORT = False
- WSGI_APPLICATION = 'app.wsgi.application'
- X_FRAME_OPTIONS = 'SAMEORIGIN'
- YEAR_MONTH_FORMAT = 'F Y'
- You're seeing this error because you have DEBUG = True in your
- Django settings file. Change that to False, and Django will
- display a standard page generated by the handler for this status code.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement