Ticket #34486: traceback.txt

File traceback.txt, 6.0 KB (added by Scott Macpherson, 19 months ago)

Traceback

Line 
1Environment:
2
3
4Request Method: GET
5Request URL: http://localhost:8000/search/?query=foo
6
7Django Version: 4.2
8Python Version: 3.11.3
9Installed Applications:
10['django.contrib.admin',
11 'django.contrib.auth',
12 'django.contrib.contenttypes',
13 'django.contrib.sessions',
14 'django.contrib.messages',
15 'django.contrib.staticfiles',
16 'django.contrib.postgres',
17 'core',
18 'blog',
19 'reading']
20Installed Middleware:
21['django.middleware.security.SecurityMiddleware',
22 'django.contrib.sessions.middleware.SessionMiddleware',
23 'django.middleware.common.CommonMiddleware',
24 'django.middleware.csrf.CsrfViewMiddleware',
25 'django.contrib.auth.middleware.AuthenticationMiddleware',
26 'django.contrib.messages.middleware.MessageMiddleware',
27 'django.middleware.clickjacking.XFrameOptionsMiddleware']
28
29
30
31Traceback (most recent call last):
32 File "/Users/scott/Development/python_venvs/zerosleeps/lib/python3.11/site-packages/django/core/handlers/exception.py", line 55, in inner
33 response = get_response(request)
34 ^^^^^^^^^^^^^^^^^^^^^
35 File "/Users/scott/Development/python_venvs/zerosleeps/lib/python3.11/site-packages/django/core/handlers/base.py", line 197, in _get_response
36 response = wrapped_callback(request, *callback_args, **callback_kwargs)
37 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
38 File "/Users/scott/Development/python_venvs/zerosleeps/lib/python3.11/site-packages/django/views/generic/base.py", line 104, in view
39 return self.dispatch(request, *args, **kwargs)
40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
41 File "/Users/scott/Development/python_venvs/zerosleeps/lib/python3.11/site-packages/django/views/generic/base.py", line 143, in dispatch
42 return handler(request, *args, **kwargs)
43 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
44 File "/Users/scott/Development/python_venvs/zerosleeps/lib/python3.11/site-packages/django/views/generic/list.py", line 154, in get
45 self.object_list = self.get_queryset()
46 ^^^^^^^^^^^^^^^^^^^
47 File "/Users/scott/Development/zerosleeps/core/views.py", line 30, in get_queryset
48 list(Post.objects.search(query)) + list(LogEntry.objects.search(query)),
49 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
50 File "/Users/scott/Development/python_venvs/zerosleeps/lib/python3.11/site-packages/django/db/models/query.py", line 398, in __iter__
51 self._fetch_all()
52 ^^^^^^^^^^^^^^^^^
53 File "/Users/scott/Development/python_venvs/zerosleeps/lib/python3.11/site-packages/django/db/models/query.py", line 1881, in _fetch_all
54 self._result_cache = list(self._iterable_class(self))
55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
56 File "/Users/scott/Development/python_venvs/zerosleeps/lib/python3.11/site-packages/django/db/models/query.py", line 91, in __iter__
57 results = compiler.execute_sql(
58
59 File "/Users/scott/Development/python_venvs/zerosleeps/lib/python3.11/site-packages/django/db/models/sql/compiler.py", line 1547, in execute_sql
60 sql, params = self.as_sql()
61 ^^^^^^^^^^^^^
62 File "/Users/scott/Development/python_venvs/zerosleeps/lib/python3.11/site-packages/django/db/models/sql/compiler.py", line 734, in as_sql
63 extra_select, order_by, group_by = self.pre_sql_setup(
64
65 File "/Users/scott/Development/python_venvs/zerosleeps/lib/python3.11/site-packages/django/db/models/sql/compiler.py", line 84, in pre_sql_setup
66 self.setup_query(with_col_aliases=with_col_aliases)
67 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
68 File "/Users/scott/Development/python_venvs/zerosleeps/lib/python3.11/site-packages/django/db/models/sql/compiler.py", line 73, in setup_query
69 self.select, self.klass_info, self.annotation_col_map = self.get_select(
70
71 File "/Users/scott/Development/python_venvs/zerosleeps/lib/python3.11/site-packages/django/db/models/sql/compiler.py", line 296, in get_select
72 sql, params = self.compile(col)
73 ^^^^^^^^^^^^^^^^^
74 File "/Users/scott/Development/python_venvs/zerosleeps/lib/python3.11/site-packages/django/db/models/sql/compiler.py", line 544, in compile
75 sql, params = node.as_sql(self, self.connection)
76 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
77 File "/Users/scott/Development/python_venvs/zerosleeps/lib/python3.11/site-packages/django/db/models/expressions.py", line 680, in as_sql
78 sql, params = compiler.compile(self.lhs)
79 ^^^^^^^^^^^^^^^^^^^^^^^^^^
80 File "/Users/scott/Development/python_venvs/zerosleeps/lib/python3.11/site-packages/django/db/models/sql/compiler.py", line 544, in compile
81 sql, params = node.as_sql(self, self.connection)
82 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
83 File "/Users/scott/Development/python_venvs/zerosleeps/lib/python3.11/site-packages/django/contrib/postgres/search.py", line 149, in as_sql
84 sql = connection.ops.compose_sql(sql, config_params + params + extra_params)
85 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
86 File "/Users/scott/Development/python_venvs/zerosleeps/lib/python3.11/site-packages/django/db/backends/postgresql/operations.py", line 205, in compose_sql
87 return mogrify(sql, params, self.connection)
88 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
89 File "/Users/scott/Development/python_venvs/zerosleeps/lib/python3.11/site-packages/django/db/backends/postgresql/psycopg_any.py", line 21, in mogrify
90 return ClientCursor(connection.connection).mogrify(sql, params)
91 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
92 File "/Users/scott/Development/python_venvs/zerosleeps/lib/python3.11/site-packages/psycopg/cursor.py", line 672, in __init__
93 super().__init__(connection)
94 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
95 File "/Users/scott/Development/python_venvs/zerosleeps/lib/python3.11/site-packages/psycopg/cursor.py", line 65, in __init__
96 self._pgconn = connection.pgconn
97 ^^^^^^^^^^^^^^^^^
98
99Exception Type: AttributeError at /search/
100Exception Value: 'NoneType' object has no attribute 'pgconn'
Back to Top