Страница не содержит результатов
Request Method: | GET |
---|---|
Request URL: | http://fast-torrent.club/topic/1/61152/ |
Django Version: | 4.1.1 |
Exception Type: | EmptyPage |
Exception Value: | Страница не содержит результатов |
Exception Location: | ./venv/lib/python3.10/site-packages/django/core/paginator.py, line 57, in validate_number |
Python Executable: | /usr/bin/uwsgi-core |
Python Version: | 3.10.12 |
Python Path: | ['.', '', '/lib/python310.zip', '/lib/python3.10', '/lib/python3.10/lib-dynload', './venv/lib/python3.10/site-packages'] |
Server time: | Tue, 19 Mar 2024 06:13:01 +0000 |
./venv/lib/python3.10/site-packages/django/core/handlers/exception.py
, line 55, in inner
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 | EmptyPage('Страница не содержит результатов') |
get_response | <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7f99a24e37f0>> |
request | <WSGIRequest: GET '/topic/1/61152/'> |
./venv/lib/python3.10/site-packages/django/core/handlers/base.py
, line 197, in _get_response
if response is None:
wrapped_callback = self.make_view_atomic(callback)
# If it is an asynchronous view, run it in a subthread.
if asyncio.iscoroutinefunction(wrapped_callback):
wrapped_callback = async_to_sync(wrapped_callback)
try:
response = wrapped_callback(request, *callback_args, **callback_kwargs)…
except Exception as e:
response = self.process_exception_by_middleware(e, request)
if response is None:
raise
# Complain if the view returned None (a common error).
Variable | Value |
---|---|
callback | <function post_list at 0x7f99a2191fc0> |
callback_args | () |
callback_kwargs | {'pagination_id': 1, 'topic_id': 61152} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <CsrfViewMiddleware get_response=convert_exception_to_response.<locals>.inner>> |
request | <WSGIRequest: GET '/topic/1/61152/'> |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f99a24e37f0> |
wrapped_callback | <function post_list at 0x7f99a2191fc0> |
././diamandas/myghtyboard/postwrapper.py
, line 828, in post_list
# forumperms = request.user_perms
#
import datetime
# TODO: разобраться как сделать вывод если этот шаблон вообще используется
return django_object_list(…
request,
posts,
paginate_by=int( pages ),
page=int( pagination_id ),
context_processors=[forumContext],
extra_context={
Variable | Value |
---|---|
_lastVisiteDate | datetime.datetime(2018, 9, 22, 10, 28, 12, 8657, tzinfo=datetime.timezone.utc) |
cache_time | 900 |
cnt | range(1, 2) |
current_page | 1 |
datetime | <module 'datetime' from '/usr/lib/python3.10/datetime.py'> |
form | '' |
forum | <Forum: Обсуждение Фильмов> |
is_authenticated | False |
is_author | False |
max | 1 |
min_date | datetime.datetime(2024, 3, 19, 5, 58, 1, 33523) |
mode | '' |
now | datetime.datetime(2024, 3, 19, 6, 13, 1, 33523) |
opened | True |
page_end | 1 |
page_first | 0 |
page_last | 0 |
page_list | ['30', '15', '50'] |
page_next | None |
page_prev | None |
page_start | 1 |
pager_renge | 2 |
pages | 30 |
pagination_id | 1 |
posts | <QuerySet [<Post: Новый комментарий от SergeyVF>]> |
request | <WSGIRequest: GET '/topic/1/61152/'> |
session_date | {'forum_pages': 30, 'pages': 15} |
session_id | None |
settings | <SiteSettings: 1:defaults> |
topic | <Topic: Winger - Live (2007)> |
topic_id | 61152 |
././diamandas/myghtyboard/postwrapper.py
, line 654, in django_object_list
# Legacy template context stuff. New templates should use page_obj
# to access this instead.
'results_per_page': paginator.per_page,
'has_next': page_obj.has_next(),
'has_previous': page_obj.has_previous(),
'page': page_obj.number,
'next': page_obj.next_page_number(),…
'previous': page_obj.previous_page_number(),
'first_on_page': page_obj.start_index(),
'last_on_page': page_obj.end_index(),
'pages': paginator.num_pages,
'hits': paginator.count,
'page_range': paginator.page_range,
Variable | Value |
---|---|
allow_empty | True |
context_processors | [<function forum at 0x7f99a22b3d90>] |
extra_context | {'action': '/forum/add_post/61152/', 'add_limit_count': 10, 'cache_id': 'post61152_page1_of30_', 'cache_time': 30, 'cnt': range(1, 2), 'current_user': 'AnonymousUser', 'form': '', 'forum_id': 3, 'forum_name': <Forum: Обсуждение Фильмов>, 'header': 'Winger - Live (2007) - Обсуждение Фильмов', 'is_authenticated': False, 'is_author': False, 'lastEditDate': datetime.datetime(2024, 3, 17, 6, 13, 1, 35186), 'lastVisiteDate': datetime.datetime(2018, 9, 22, 10, 28, 12, 8657, tzinfo=datetime.timezone.utc), 'min_date': datetime.datetime(2024, 3, 19, 5, 58, 1, 33523), 'mode': '', 'opened': True, 'page_end': 1, 'page_first': 0, 'page_last': 0, 'page_list': ['30', '15', '50'], 'page_next': None, 'page_prev': None, 'page_range': [1], 'pages': '30', 'path_items': (('Главная', '/'), ('Форум', '/forum/'), (<Forum: Обсуждение Фильмов>, '/forum/3/'), (<Topic: Winger - Live (2007)>, False)), 'title': 'Обсуждение Фильмов - Winger - Live (2007)', 'topic': <Topic: Winger - Live (2007)>} |
mimetype | None |
page | 1 |
page_number | 1 |
page_obj | <Page 1 of 1> |
paginate_by | 30 |
paginator | <django.core.paginator.Paginator object at 0x7f99a11a5030> |
queryset | <QuerySet [<Post: Новый комментарий от SergeyVF>]> |
request | <WSGIRequest: GET '/topic/1/61152/'> |
template_loader | <module 'django.template.loader' from '/home/webmaster/fasttorrent_ru3/venv/lib/python3.10/site-packages/django/template/loader.py'> |
template_name | 'myghtyboard/post_list.html' |
template_object_name | 'object' |
./venv/lib/python3.10/site-packages/django/core/paginator.py
, line 201, in next_page_number
def has_previous(self):
return self.number > 1
def has_other_pages(self):
return self.has_previous() or self.has_next()
def next_page_number(self):
return self.paginator.validate_number(self.number + 1)…
def previous_page_number(self):
return self.paginator.validate_number(self.number - 1)
def start_index(self):
"""
Variable | Value |
---|---|
self | <Page 1 of 1> |
./venv/lib/python3.10/site-packages/django/core/paginator.py
, line 57, in validate_number
raise PageNotAnInteger(_("That page number is not an integer"))
if number < 1:
raise EmptyPage(_("That page number is less than 1"))
if number > self.num_pages:
if number == 1 and self.allow_empty_first_page:
pass
else:
raise EmptyPage(_("That page contains no results"))…
return number
def get_page(self, number):
"""
Return a valid page, even if the page argument isn't a number or isn't
in range.
Variable | Value |
---|---|
number | 2 |
self | <django.core.paginator.Paginator object at 0x7f99a11a5030> |
AnonymousUser
No GET data
No POST data
No FILES data
Variable | Value |
---|---|
forum_pages | 30 |
Variable | Value |
---|---|
CONTENT_LENGTH | '' |
CONTENT_TYPE | '' |
DOCUMENT_ROOT | '/etc/nginx/html' |
HTTP_ACCEPT | '*/*' |
HTTP_CONNECTION | 'close' |
HTTP_HOST | 'fast-torrent.club' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_X_FORWARDED_FOR | '23.20.220.59' |
HTTP_X_FORWARDED_PROTO | 'http' |
HTTP_X_REAL_IP | '23.20.220.59' |
PATH_INFO | '********************' |
QUERY_STRING | '' |
REMOTE_ADDR | '5.61.59.230' |
REMOTE_PORT | '54776' |
REQUEST_METHOD | 'GET' |
REQUEST_SCHEME | 'http' |
REQUEST_URI | '/topic/1/61152/' |
SCRIPT_NAME | '' |
SERVER_NAME | 'www.fast-torrent.ru' |
SERVER_PORT | '80' |
SERVER_PROTOCOL | 'HTTP/1.0' |
Setting | Value |
---|
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.