type object 'Http404' has no attribute 'status_code'
Request Method: | GET |
---|---|
Request URL: | https://perovskywinery.ru/ru/tours/standart/ |
Django Version: | 3.1.1 |
Exception Type: | AttributeError |
Exception Value: | type object 'Http404' has no attribute 'status_code' |
Exception Location: | /opt/apps/perovskywinery.ru/venv/lib/python3.8/site-packages/django/middleware/common.py, line 106, in process_response |
Python Executable: | /usr/bin/uwsgi-core |
Python Version: | 3.8.5 |
Python Path: | ['.', '', '/usr/lib/python38.zip', '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload', '/opt/apps/perovskywinery.ru/venv/lib/python3.8/site-packages'] |
Server time: | Fri, 29 Mar 2024 15:11:52 +0000 |
/opt/apps/perovskywinery.ru/venv/lib/python3.8/site-packages/django/core/handlers/exception.py
, line 47, in inner
response = await sync_to_async(response_for_exception)(request, exc)
return response
return inner
else:
@wraps(get_response)
def inner(request):
try:
response = get_response(request)…
except Exception as exc:
response = response_for_exception(request, exc)
return response
return inner
Variable | Value |
---|---|
exc | AttributeError("type object 'Http404' has no attribute 'status_code'") |
get_response | <django.middleware.common.CommonMiddleware object at 0x7f8048282fd0> |
request | <WSGIRequest: GET '/ru/tours/standart/'> |
/opt/apps/perovskywinery.ru/venv/lib/python3.8/site-packages/django/utils/deprecation.py
, line 116, in __call__
if asyncio.iscoroutinefunction(self.get_response):
return self.__acall__(request)
response = None
if hasattr(self, 'process_request'):
response = self.process_request(request)
response = response or self.get_response(request)
if hasattr(self, 'process_response'):
response = self.process_response(request, response)…
return response
async def __acall__(self, request):
"""
Async version of __call__ that is swapped in when an async request
is running.
Variable | Value |
---|---|
request | <WSGIRequest: GET '/ru/tours/standart/'> |
response | <class 'django.http.response.Http404'> |
self | <django.middleware.common.CommonMiddleware object at 0x7f8048282fd0> |
/opt/apps/perovskywinery.ru/venv/lib/python3.8/site-packages/django/middleware/common.py
, line 106, in process_response
def process_response(self, request, response):
"""
When the status code of the response is 404, it may redirect to a path
with an appended slash if should_redirect_with_slash() returns True.
"""
# If the given URL is "Not Found", then check if we should redirect to
# a path with a slash appended.
if response.status_code == 404:…
if self.should_redirect_with_slash(request):
return self.response_redirect_class(self.get_full_path_with_slash(request))
# Add the Content-Length header to non-streaming responses if not
# already set.
if not response.streaming and not response.has_header('Content-Length'):
Variable | Value |
---|---|
request | <WSGIRequest: GET '/ru/tours/standart/'> |
response | <class 'django.http.response.Http404'> |
self | <django.middleware.common.CommonMiddleware object at 0x7f8048282fd0> |
AnonymousUser
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
CONTENT_LENGTH | '' |
CONTENT_TYPE | '' |
DOCUMENT_ROOT | '/usr/share/nginx/html' |
HTTPS | 'on' |
HTTP_ACCEPT | '*/*' |
HTTP_HOST | 'perovskywinery.ru' |
HTTP_REFERER | 'https://perovskywinery.ru/ru/tours/standart' |
HTTP_USER_AGENT | 'claudebot' |
PATH_INFO | '/ru/tours/standart/' |
QUERY_STRING | '' |
REMOTE_ADDR | '54.175.5.131' |
REMOTE_PORT | '50186' |
REQUEST_METHOD | 'GET' |
REQUEST_SCHEME | 'https' |
REQUEST_URI | '/ru/tours/standart/' |
SCRIPT_NAME | '' |
SERVER_NAME | 'perovskywinery.ru' |
SERVER_PORT | '443' |
SERVER_PROTOCOL | 'HTTP/1.1' |
uwsgi.core | 1 |
uwsgi.node | b'alpha.rkz.io' |
uwsgi.version | b'2.0.18-debian' |
wsgi.errors | <_io.TextIOWrapper name=2 mode='w' encoding='UTF-8'> |
wsgi.file_wrapper | <built-in function uwsgi_sendfile> |
wsgi.input | <uwsgi._Input object at 0x7f80456a3c10> |
wsgi.multiprocess | True |
wsgi.multithread | True |
wsgi.run_once | False |
wsgi.url_scheme | 'https' |
wsgi.version | (1, 0) |
winery.settings
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ADMINS | [] |
ALLOWED_HOSTS | ['*'] |
APPEND_SLASH | True |
AUTHENTICATION_BACKENDS | ['django.contrib.auth.backends.ModelBackend'] |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_USER_MODEL | 'auth.User' |
BASE_DIR | '/opt/apps/perovskywinery.ru/winery' |
BLANK_IMAGE_ID | 5 |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} |
CACHE_MIDDLEWARE_ALIAS | 'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | '********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
CAPTCHA_BACKGROUND_COLOR | '#ffffff' |
CAPTCHA_CHALLENGE_FUNCT | 'winery.utils.captcha_word' |
CAPTCHA_FONT_SIZE | 28 |
CAPTCHA_FOREGROUND_COLOR | '#79001E' |
CAPTCHA_IMAGE_SIZE | (200, 60) |
CAPTCHA_NOISE_FUNCTIONS | ('winery.utils.noise_arcs',) |
CKEDITOR_CONFIGS | {'default': {'extraPlugins': 'uploadimage,div,autolink,autoembed,embedsemantic,autogrow,widget,lineutils,clipboard,dialog,dialogui,elementspath', 'skin': 'moono', 'tabSpaces': 4, 'toolbar': 'YourCustomToolbarConfig', 'toolbar_Basic': [['Source', '-', 'Bold', 'Italic']], 'toolbar_YourCustomToolbarConfig': [{'items': ['Source', 'Maximize', 'ShowBlocks'], 'name': 'document'}, {'items': ['Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo'], 'name': 'clipboard'}, {'items': ['Find', 'Replace', '-', 'SelectAll'], 'name': 'editing'}, {'items': ['Image', 'Table', 'HorizontalRule', 'Smiley', 'SpecialChar', 'PageBreak', 'Iframe'], 'name': 'insert'}, {'items': ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Blockquote', 'CreateDiv', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock', '-', 'BidiLtr', 'BidiRtl'], 'name': 'paragraph'}, {'name': 'forms'}, {'items': ['Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'RemoveFormat'], 'name': 'basicstyles'}, {'items': ['Link', 'Unlink', 'Anchor'], 'name': 'links'}, {'items': ['Format', 'FontSize'], 'name': 'styles'}, {'items': ['TextColor', 'BGColor'], 'name': 'colors'}, {'items': ['About'], 'name': 'about'}, '/']}} |
CKEDITOR_UPLOAD_PATH | 'uploads/' |
CORS_ALLOWED_ORIGINS | ['https://fest-camp.ru', 'https://perovskywinery.ru', 'https://odesos.wine'] |
CSRF_COOKIE_AGE | 31449600 |
CSRF_COOKIE_DOMAIN | None |
CSRF_COOKIE_HTTPONLY | False |
CSRF_COOKIE_NAME | 'csrftoken' |
CSRF_COOKIE_PATH | '/' |
CSRF_COOKIE_SAMESITE | 'Lax' |
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': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'HOST': '127.0.0.1', 'NAME': 'perovskywinery', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '5432', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIGRATE': True, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'perovskywinery'}} |
DATABASE_ROUTERS | [] |
DATA_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
DATA_UPLOAD_MAX_NUMBER_FIELDS | 1000 |
DATETIME_FORMAT | 'N j, Y, P' |
DATETIME_FORMATS | {1: '%d.%m.%Y %H:%M:%S', 2: '%d.%m.%Y %H:%M', 3: '%d.%m.%Y', 4: '%Y-%m-%d', 5: '%Y-%m-%d %H:%M'} |
DATETIME_INPUT_FORMATS | ['%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M:%S.%f', '%Y-%m-%d %H:%M', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M:%S.%f', '%m/%d/%Y %H:%M', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M:%S.%f', '%m/%d/%y %H:%M'] |
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'] |
DEBUG | True |
DEBUG_PROPAGATE_EXCEPTIONS | False |
DECIMAL_SEPARATOR | '.' |
DEFAULT_CHARSET | 'utf-8' |
DEFAULT_EXCEPTION_REPORTER | 'django.views.debug.ExceptionReporter' |
DEFAULT_EXCEPTION_REPORTER_FILTER | 'django.views.debug.SafeExceptionReporterFilter' |
DEFAULT_FILE_STORAGE | 'django.core.files.storage.FileSystemStorage' |
DEFAULT_FROM_EMAIL | 'notifications@raziogroup.com' |
DEFAULT_HASHING_ALGORITHM | 'sha256' |
DEFAULT_INDEX_TABLESPACE | '' |
DEFAULT_TABLESPACE | '' |
DISALLOWED_USER_AGENTS | [] |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
EMAIL_HOST | 'mail.raziogroup.com' |
EMAIL_HOST_PASSWORD | '********************' |
EMAIL_HOST_USER | 'notifications@raziogroup.com' |
EMAIL_PORT | 25 |
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 | True |
FESTIVAL_NOTIFICATION_MAIL_LIST | {'callback': 'reservation@fest-camp.ru'} |
FILER_IMAGE_MODEL | 'filer.Image' |
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 | 420 |
FILE_UPLOAD_TEMP_DIR | None |
FIRST_DAY_OF_WEEK | 0 |
FIXTURE_DIRS | [] |
FORCE_SCRIPT_NAME | None |
FORMAT_MODULE_PATH | None |
FORM_RENDERER | 'django.forms.renderers.DjangoTemplates' |
IGNORABLE_404_URLS | [] |
INSTALLED_APPS | ['modeltranslation', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', 'captcha', 'ckeditor', 'easy_thumbnails', 'filer', 'tabbed_admin', 'pages', 'portals', 'reviews', 'tour', 'winecollection', 'winery'] |
INTERNAL_IPS | [] |
LANGUAGES | (('ru', 'Русский'),) |
LANGUAGES_BIDI | ['he', 'ar', 'ar-dz', 'fa', 'ur'] |
LANGUAGES_VIEWS | {'en': 'en', 'ru': 'ru', 'uk': 'ua'} |
LANGUAGE_CODE | 'ru' |
LANGUAGE_COOKIE_AGE | None |
LANGUAGE_COOKIE_DOMAIN | None |
LANGUAGE_COOKIE_HTTPONLY | False |
LANGUAGE_COOKIE_NAME | 'django_language' |
LANGUAGE_COOKIE_PATH | '/' |
LANGUAGE_COOKIE_SAMESITE | None |
LANGUAGE_COOKIE_SECURE | False |
LOCALE_PATHS | ('/opt/apps/perovskywinery.ru/winery/winery/gallery/locale', '/opt/apps/perovskywinery.ru/winery/winery/news/locale', '/opt/apps/perovskywinery.ru/winery/winery/pages/locale', '/opt/apps/perovskywinery.ru/winery/winery/partners/locale', '/opt/apps/perovskywinery.ru/winery/winery/portals/locale', '/opt/apps/perovskywinery.ru/winery/winery/reviews/locale', '/opt/apps/perovskywinery.ru/winery/winery/team/locale', '/opt/apps/perovskywinery.ru/winery/winery/tour/locale', '/opt/apps/perovskywinery.ru/winery/winery/winecollection/locale', '/opt/apps/perovskywinery.ru/winery/winery/winery/locale') |
LOCAL_APPS | ['pages', 'portals', 'reviews', 'tour', 'winecollection', 'winery'] |
LOCAL_PORT | '' |
LOGGING | {} |
LOGGING_CONFIG | 'logging.config.dictConfig' |
LOGIN_REDIRECT_URL | '/accounts/profile/' |
LOGIN_URL | '/accounts/login/' |
LOGOUT_REDIRECT_URL | None |
MANAGERS | [] |
MAXIMUM_SUCCESS_CAPTCHA | 5 |
MEDIA_ROOT | '/opt/apps/perovskywinery.ru/winery/media' |
MEDIA_URL | '/media/' |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
MIDDLEWARE | ['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', 'django.middleware.locale.LocaleMiddleware', 'django.middleware.common.CommonMiddleware', 'winery.middleware.DomainDetect'] |
MIGRATION_MODULES | {} |
MODELTRANSLATION_DEFAULT_LANGUAGE | 'ru' |
MODELTRANSLATION_LANGUAGES | ('ru', 'en', 'uk') |
MODELTRANSLATION_TRANSLATION_FILES | () |
MODELTRANSLATION_TRANSLATION_REGISTRY | 'translation' |
MONTH_DAY_FORMAT | 'F j' |
NUMBER_GROUPING | 0 |
ODESOS_CALLBACK_PHONE | {'callback': ''} |
ODESOS_COUNTERS | {'facebook': {'counter': ''}, 'google': {'counter': ''}, 'gtag': {'body': '', 'head': ''}, 'tagmanager': {'body': '', 'head': ''}, 'yandex': {'counter': ''}} |
ODESOS_NOTIFICATION_MAIL_LIST | {'callback': 'marketing@odesos.wine', 'reviews': 'marketing@odesos.wine'} |
PASSWORD_HASHERS | '********************' |
PASSWORD_RESET_TIMEOUT | '********************' |
PASSWORD_RESET_TIMEOUT_DAYS | '********************' |
PEROVSKY_CALLBACK_PHONE | {'callback': '+7 (978) 550-63-84'} |
PEROVSKY_COUNTERS | {'facebook': {'counter': ''}, 'google': {'counter': ''}, 'gtag': {'body': '', 'head': ''}, 'tagmanager': {'body': '', 'head': ''}, 'yandex': {'counter': ''}} |
PEROVSKY_NOTIFICATION_MAIL_LIST | {'callback': 'perovskywinery-tours@raziogroup.com', 'reviews': 'perovskywinery-reviews@raziogroup.com'} |
PREPEND_WWW | False |
ROOT_URLCONF | 'winery.urls' |
SECRET_KEY | '********************' |
SECURE_BROWSER_XSS_FILTER | False |
SECURE_CONTENT_TYPE_NOSNIFF | True |
SECURE_HSTS_INCLUDE_SUBDOMAINS | False |
SECURE_HSTS_PRELOAD | False |
SECURE_HSTS_SECONDS | 0 |
SECURE_PROXY_SSL_HEADER | None |
SECURE_REDIRECT_EXEMPT | [] |
SECURE_REFERRER_POLICY | 'same-origin' |
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_SAMESITE | 'Lax' |
SESSION_COOKIE_SECURE | False |
SESSION_ENGINE | 'django.contrib.sessions.backends.db' |
SESSION_EXPIRE_AT_BROWSER_CLOSE | False |
SESSION_FILE_PATH | None |
SESSION_SAVE_EVERY_REQUEST | False |
SESSION_SERIALIZER | 'django.contrib.sessions.serializers.JSONSerializer' |
SETTINGS_MODULE | 'winery.settings' |
SHARED_SESSION_SITES | ['odesos.wine', 'perovskywinery.ru'] |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
SHORT_DATE_FORMAT | 'm/d/Y' |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
SILENCED_SYSTEM_CHECKS | [] |
STATICFILES_DIRS | ['winery/static'] |
STATICFILES_FINDERS | ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder'] |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
STATIC_ROOT | '/opt/apps/perovskywinery.ru/winery/static' |
STATIC_URL | '/static/' |
TABBED_ADMIN_USE_JQUERY_UI | True |
TEMPLATES | [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.jinja2.Jinja2', 'DIRS': ['/opt/apps/perovskywinery.ru/winery/winecollection/jtemplates', '/opt/apps/perovskywinery.ru/winery/winelocation/jtemplates', '/opt/apps/perovskywinery.ru/winery/tour/jtemplates', '/opt/apps/perovskywinery.ru/winery/team/jtemplates', '/opt/apps/perovskywinery.ru/winery/news/jtemplates', '/opt/apps/perovskywinery.ru/winery/partners/jtemplates', '/opt/apps/perovskywinery.ru/winery/reviews/jtemplates', '/opt/apps/perovskywinery.ru/winery/winery/jtemplates', '/opt/apps/perovskywinery.ru/winery/gallery/jtemplates', '/opt/apps/perovskywinery.ru/winery/pages/jtemplates'], 'OPTIONS': {'context_processors': ['winery.context_processors.call_forms', 'winery.context_processors.captcha_form'], 'environment': 'winery.jinja.env_class.JinjaEnvironment'}}, {'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/opt/apps/perovskywinery.ru/winery/templates'], 'OPTIONS': {'context_processors': ['django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages']}}] |
TEST_NON_SERIALIZED_APPS | [] |
TEST_RUNNER | 'django.test.runner.DiscoverRunner' |
THOUSAND_SEPARATOR | ',' |
THUMBNAIL_ALIASES | {'': {'about_portal_img': {'crop': False, 'size': (555, 370), 'upscale': True}, 'admin_100': {'crop': False, 'size': (350, 100), 'upscale': False}, 'admin_50': {'crop': False, 'size': (250, 50), 'upscale': False}, 'collection_big': {'crop': False, 'size': (225, 674), 'upscale': False}, 'collection_item_wine_img': {'crop': False, 'size': (225, 675), 'upscale': True}, 'collection_small': {'crop': False, 'size': (64, 270), 'upscale': False}, 'collection_wine_img': {'crop': False, 'size': (65, 250), 'upscale': True}, 'gallery': {'crop': True, 'size': (450, 450), 'upscale': True}, 'main_slider': {'crop': True, 'quality': 80, 'size': (2560, 650), 'upscale': True}, 'news': {'crop': True, 'size': (400, 400), 'upscale': False}, 'news_main_page': {'crop': True, 'size': (215, 215), 'upscale': True}, 'og_image': {'crop': True, 'quality': 80, 'size': (1200, 900), 'upscale': True}, 'pages_link_img': {'crop': False, 'size': (205, 205), 'upscale': True}, 'reviews_director': {'crop': True, 'size': (240, 300), 'upscale': False}, 'team': {'crop': False, 'size': (350, 350), 'upscale': False}, 'tour_photo': {'crop': True, 'size': (640, 640), 'upscale': True}, 'video_img': {'crop': True, 'size': (450, 250), 'upscale': True}, 'wine_group': {'crop': False, 'size': (500, 1600), 'upscale': True}}} |
THUMBNAIL_HIGH_RESOLUTION | True |
THUMBNAIL_PROCESSORS | ('easy_thumbnails.processors.colorspace', 'easy_thumbnails.processors.autocrop', 'filer.thumbnail_processors.scale_and_crop_with_subject_location', 'easy_thumbnails.processors.filters') |
TIME_FORMAT | 'P' |
TIME_INPUT_FORMATS | ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M'] |
TIME_ZONE | 'UTC' |
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 | 'winery.wsgi.application' |
X_FRAME_OPTIONS | '' |
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.