Ticket #36375: Traceback.txt

File Traceback.txt, 18.6 KB (added by Larry Davis, 4 months ago)
Line 
1Environment:
2
3
4Request Method: GET
5Request URL: http://127.0.0.1:8000/admin_url/auth/user/add/
6
7Django Version: 5.2b1
8Python Version: 3.12.1
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.sites',
17 'django.contrib.redirects',
18 'django_otp',
19 'django_otp.plugins.otp_totp',
20 'django_otp.plugins.otp_static',
21 'sslserver',
22 'captcha',
23 'qr_code',
24 'corsheaders',
25 'rest_framework',
26 'rest_framework.authtoken',
27 'sass_processor',
28 'wkhtmltopdf,
29 'custom_app1',
30 'custom_app2',
31 'custom_app3',
32 'custom_app4',
33 'custom_app5',
34 'custom_app6',
35 'custom_app7',
36]
37Installed Middleware:
38['django.middleware.security.SecurityMiddleware',
39 'whitenoise.middleware.WhiteNoiseMiddleware',
40 'corsheaders.middleware.CorsMiddleware',
41 'django.contrib.sessions.middleware.SessionMiddleware',
42 'django.middleware.common.CommonMiddleware',
43 'django.middleware.locale.LocaleMiddleware',
44 'django.middleware.csrf.CsrfViewMiddleware',
45 'django.contrib.auth.middleware.AuthenticationMiddleware',
46 'django_otp.middleware.OTPMiddleware',
47 'django.contrib.messages.middleware.MessageMiddleware',
48 'django.middleware.clickjacking.XFrameOptionsMiddleware']
49
50Template loader postmortem
51Django tried loading these templates, in this order:
52
53Using engine django:
54 * django.template.loaders.filesystem.Loader: /my/site/project_directory/baseproject/templates/django/forms/errors/list/ul.html (Source does not exist)
55 * django.template.loaders.filesystem.Loader: /my/site/project_directory/siteuser/templates/user/django/forms/errors/list/ul.html (Source does not exist)
56 * django.template.loaders.filesystem.Loader: /my/site/project_directory/custom_app1/templates/django/forms/errors/list/ul.html (Source does not exist)
57 * django.template.loaders.filesystem.Loader: /my/site/project_directory/custom_app4/templates/custom_app4/django/forms/errors/list/ul.html (Source does not exist)
58 * django.template.loaders.filesystem.Loader: /my/site/project_directory/custom_app2/templates/custom_app2/django/forms/errors/list/ul.html (Source does not exist)
59 * django.template.loaders.filesystem.Loader: /my/site/project_directory/custom_app3/templates/custom_app3/django/forms/errors/list/ul.html (Source does not exist)
60 * django.template.loaders.filesystem.Loader: /my/site/project_directory/custom_app5/templates/custom_app5/django/forms/errors/list/ul.html (Source does not exist)
61 * django.template.loaders.filesystem.Loader: /my/site/project_directory/custom_app6/templates/custom_app6/django/forms/errors/list/ul.html (Source does not exist)
62 * django.template.loaders.filesystem.Loader: /my/site/project_directory/custom_app7/templates/django/forms/errors/list/ul.html (Source does not exist)
63 * django.template.loaders.filesystem.Loader: /opt/conda/envs/runtime/lib/python3.12/site-packages/django/contrib/admin/templates/django/forms/errors/list/ul.html (Source does not exist)
64 * django.template.loaders.filesystem.Loader: /opt/conda/envs/runtime/lib/python3.12/site-packages/django/contrib/auth/templates/django/forms/errors/list/ul.html (Source does not exist)
65 * django.template.loaders.app_directories.Loader: /opt/conda/envs/runtime/lib/python3.12/site-packages/django/contrib/admin/templates/django/forms/errors/list/ul.html (Source does not exist)
66 * django.template.loaders.app_directories.Loader: /opt/conda/envs/runtime/lib/python3.12/site-packages/django/contrib/auth/templates/django/forms/errors/list/ul.html (Source does not exist)
67 * django.template.loaders.app_directories.Loader: /opt/conda/envs/runtime/lib/python3.12/site-packages/django_otp/templates/django/forms/errors/list/ul.html (Source does not exist)
68 * django.template.loaders.app_directories.Loader: /opt/conda/envs/runtime/lib/python3.12/site-packages/django_otp/plugins/otp_totp/templates/django/forms/errors/list/ul.html (Source does not exist)
69 * django.template.loaders.app_directories.Loader: /opt/conda/envs/runtime/lib/python3.12/site-packages/captcha/templates/django/forms/errors/list/ul.html (Source does not exist)
70 * django.template.loaders.app_directories.Loader: /opt/conda/envs/runtime/lib/python3.12/site-packages/rest_framework/templates/django/forms/errors/list/ul.html (Source does not exist)
71 * django.template.loaders.app_directories.Loader: /my/site/project_directory/siteuser/templates/django/forms/errors/list/ul.html (Source does not exist)
72 * django.template.loaders.app_directories.Loader: /my/site/project_directory/custom_app5/templates/django/forms/errors/list/ul.html (Source does not exist)
73 * django.template.loaders.app_directories.Loader: /my/site/project_directory/custom_app2/templates/django/forms/errors/list/ul.html (Source does not exist)
74 * django.template.loaders.app_directories.Loader: /my/site/project_directory/custom_app4/templates/django/forms/errors/list/ul.html (Source does not exist)
75 * django.template.loaders.app_directories.Loader: /my/site/project_directory/custom_app3/templates/django/forms/errors/list/ul.html (Source does not exist)
76 * django.template.loaders.app_directories.Loader: /my/site/project_directory/custom_app6/templates/django/forms/errors/list/ul.html (Source does not exist)
77 * django.template.loaders.app_directories.Loader: /my/site/project_directory/custom_app1/templates/django/forms/errors/list/ul.html (Source does not exist)
78 * django.template.loaders.app_directories.Loader: /my/site/project_directory/baseproject/templates/django/forms/errors/list/ul.html (Source does not exist)
79 * django.template.loaders.app_directories.Loader: /my/site/project_directory/custom_app7/templates/django/forms/errors/list/ul.html (Source does not exist)
80 * django.template.loaders.app_directories.Loader: /opt/conda/envs/runtime/lib/python3.12/site-packages/polaris/templates/django/forms/errors/list/ul.html (Source does not exist)
81
82
83Template error:
84In template /opt/conda/envs/runtime/lib/python3.12/site-packages/django/contrib/admin/templates/admin/includes/fieldset.html, error at line 12
85 django/forms/errors/list/ul.html
86 2 : {% if fieldset.name %}
87 3 : {% if fieldset.is_collapsible %}<details><summary>{% endif %}
88 4 : <h{{ heading_level|default:2 }} id="{{ prefix }}-{{ id_prefix}}-{{ id_suffix }}-heading" class="fieldset-heading">{{ fieldset.name }}</h{{ heading_level|default:2 }}>
89 5 : {% if fieldset.is_collapsible %}</summary>{% endif %}
90 6 : {% endif %}
91 7 : {% if fieldset.description %}
92 8 : <div class="description">{{ fieldset.description|safe }}</div>
93 9 : {% endif %}
94 10 : {% for line in fieldset %}
95 11 : <div class="form-row{% if line.fields|length == 1 and line.errors %} errors{% endif %}{% if not line.has_visible_field %} hidden{% endif %}{% for field in line %}{% if field.field.name %} field-{{ field.field.name }}{% endif %}{% endfor %}">
96 12 : {% if line.fields|length == 1 %} {{ line.errors }} {% else %}<div class="flex-container form-multiline">{% endif %}
97 13 : {% for field in line %}
98 14 : <div>
99 15 : {% if not line.fields|length == 1 and not field.is_readonly %}{{ field.errors }}{% endif %}
100 16 : <div class="flex-container{% if not line.fields|length == 1 %} fieldBox{% if field.field.name %} field-{{ field.field.name }}{% endif %}{% if not field.is_readonly and field.errors %} errors{% endif %}{% if field.field.is_hidden %} hidden{% endif %}{% endif %}{% if field.is_checkbox %} checkbox-row{% endif %}">
101 17 : {% if field.is_checkbox %}
102 18 : {{ field.field }}{{ field.label_tag }}
103 19 : {% else %}
104 20 : {{ field.label_tag }}
105 21 : {% if field.is_readonly %}
106 22 : <div class="readonly">{{ field.contents }}</div>
107
108
109Traceback (most recent call last):
110 File "/opt/conda/envs/runtime/lib/python3.12/site-packages/django/template/backends/django.py", line 107, in render
111 return self.template.render(context)
112 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
113 File "/opt/conda/envs/runtime/lib/python3.12/site-packages/django/template/base.py", line 171, in render
114 return self._render(context)
115 ^^^^^^^^^^^^^^^^^^^^^
116 File "/opt/conda/envs/runtime/lib/python3.12/site-packages/django/test/utils.py", line 114, in instrumented_test_render
117 return self.nodelist.render(context)
118 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
119 File "/opt/conda/envs/runtime/lib/python3.12/site-packages/django/template/base.py", line 1016, in render
120 return SafeString("".join([node.render_annotated(context) for node in self]))
121 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
122 File "/opt/conda/envs/runtime/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated
123 return self.render(context)
124 ^^^^^^^^^^^^^^^^^^^^
125 File "/opt/conda/envs/runtime/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render
126 return compiled_parent._render(context)
127 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
128 File "/opt/conda/envs/runtime/lib/python3.12/site-packages/django/test/utils.py", line 114, in instrumented_test_render
129 return self.nodelist.render(context)
130 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
131 File "/opt/conda/envs/runtime/lib/python3.12/site-packages/django/template/base.py", line 1016, in render
132 return SafeString("".join([node.render_annotated(context) for node in self]))
133 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
134 File "/opt/conda/envs/runtime/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated
135 return self.render(context)
136 ^^^^^^^^^^^^^^^^^^^^
137 File "/opt/conda/envs/runtime/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render
138 return compiled_parent._render(context)
139 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
140 File "/opt/conda/envs/runtime/lib/python3.12/site-packages/django/test/utils.py", line 114, in instrumented_test_render
141 return self.nodelist.render(context)
142 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
143 File "/opt/conda/envs/runtime/lib/python3.12/site-packages/django/template/base.py", line 1016, in render
144 return SafeString("".join([node.render_annotated(context) for node in self]))
145 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
146 File "/opt/conda/envs/runtime/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated
147 return self.render(context)
148 ^^^^^^^^^^^^^^^^^^^^
149 File "/opt/conda/envs/runtime/lib/python3.12/site-packages/django/template/loader_tags.py", line 159, in render
150 return compiled_parent._render(context)
151 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
152 File "/opt/conda/envs/runtime/lib/python3.12/site-packages/django/test/utils.py", line 114, in instrumented_test_render
153 return self.nodelist.render(context)
154 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
155 File "/opt/conda/envs/runtime/lib/python3.12/site-packages/django/template/base.py", line 1016, in render
156 return SafeString("".join([node.render_annotated(context) for node in self]))
157 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
158 File "/opt/conda/envs/runtime/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated
159 return self.render(context)
160 ^^^^^^^^^^^^^^^^^^^^
161 File "/opt/conda/envs/runtime/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render
162 result = block.nodelist.render(context)
163 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
164 File "/opt/conda/envs/runtime/lib/python3.12/site-packages/django/template/base.py", line 1016, in render
165 return SafeString("".join([node.render_annotated(context) for node in self]))
166 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
167 File "/opt/conda/envs/runtime/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated
168 return self.render(context)
169 ^^^^^^^^^^^^^^^^^^^^
170 File "/opt/conda/envs/runtime/lib/python3.12/site-packages/django/template/loader_tags.py", line 65, in render
171 result = block.nodelist.render(context)
172 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
173 File "/opt/conda/envs/runtime/lib/python3.12/site-packages/django/template/base.py", line 1016, in render
174 return SafeString("".join([node.render_annotated(context) for node in self]))
175 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
176 File "/opt/conda/envs/runtime/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated
177 return self.render(context)
178 ^^^^^^^^^^^^^^^^^^^^
179 File "/opt/conda/envs/runtime/lib/python3.12/site-packages/django/template/defaulttags.py", line 243, in render
180 nodelist.append(node.render_annotated(context))
181 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
182 File "/opt/conda/envs/runtime/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated
183 return self.render(context)
184 ^^^^^^^^^^^^^^^^^^^^
185 File "/opt/conda/envs/runtime/lib/python3.12/site-packages/django/template/loader_tags.py", line 210, in render
186 return template.render(context)
187 ^^^^^^^^^^^^^^^^^^^^^^^^
188 File "/opt/conda/envs/runtime/lib/python3.12/site-packages/django/template/base.py", line 173, in render
189 return self._render(context)
190 ^^^^^^^^^^^^^^^^^^^^^
191 File "/opt/conda/envs/runtime/lib/python3.12/site-packages/django/test/utils.py", line 114, in instrumented_test_render
192 return self.nodelist.render(context)
193 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
194 File "/opt/conda/envs/runtime/lib/python3.12/site-packages/django/template/base.py", line 1016, in render
195 return SafeString("".join([node.render_annotated(context) for node in self]))
196 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
197 File "/opt/conda/envs/runtime/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated
198 return self.render(context)
199 ^^^^^^^^^^^^^^^^^^^^
200 File "/opt/conda/envs/runtime/lib/python3.12/site-packages/django/template/defaulttags.py", line 243, in render
201 nodelist.append(node.render_annotated(context))
202 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
203 File "/opt/conda/envs/runtime/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated
204 return self.render(context)
205 ^^^^^^^^^^^^^^^^^^^^
206 File "/opt/conda/envs/runtime/lib/python3.12/site-packages/django/template/defaulttags.py", line 327, in render
207 return nodelist.render(context)
208 ^^^^^^^^^^^^^^^^^^^^^^^^
209 File "/opt/conda/envs/runtime/lib/python3.12/site-packages/django/template/base.py", line 1016, in render
210 return SafeString("".join([node.render_annotated(context) for node in self]))
211 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
212 File "/opt/conda/envs/runtime/lib/python3.12/site-packages/django/template/base.py", line 977, in render_annotated
213 return self.render(context)
214 ^^^^^^^^^^^^^^^^^^^^
215 File "/opt/conda/envs/runtime/lib/python3.12/site-packages/django/template/base.py", line 1075, in render
216 output = self.filter_expression.resolve(context)
217 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
218 File "/opt/conda/envs/runtime/lib/python3.12/site-packages/django/template/base.py", line 722, in resolve
219 obj = self.var.resolve(context)
220 ^^^^^^^^^^^^^^^^^^^^^^^^^
221 File "/opt/conda/envs/runtime/lib/python3.12/site-packages/django/template/base.py", line 854, in resolve
222 value = self._resolve_lookup(context)
223 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
224 File "/opt/conda/envs/runtime/lib/python3.12/site-packages/django/template/base.py", line 925, in _resolve_lookup
225 current = current()
226 ^^^^^^^^^
227 File "/opt/conda/envs/runtime/lib/python3.12/site-packages/django/contrib/admin/helpers.py", line 162, in errors
228 "\n".join(
229 ^
230 File "/opt/conda/envs/runtime/lib/python3.12/site-packages/django/contrib/admin/helpers.py", line 163, in <genexpr>
231 self.form[f].errors.as_ul()
232 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
233 File "/opt/conda/envs/runtime/lib/python3.12/site-packages/django/forms/utils.py", line 110, in as_ul
234 return self.render(self.template_name_ul)
235 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
236 File "/opt/conda/envs/runtime/lib/python3.12/site-packages/django/forms/utils.py", line 55, in render
237 return mark_safe(renderer.render(template, context))
238 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
239 File "/opt/conda/envs/runtime/lib/python3.12/site-packages/django/forms/renderers.py", line 30, in render
240 template = self.get_template(template_name)
241 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
242 File "/opt/conda/envs/runtime/lib/python3.12/site-packages/django/forms/renderers.py", line 114, in get_template
243 return get_template(template_name)
244 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
245 File "/opt/conda/envs/runtime/lib/python3.12/site-packages/django/template/loader.py", line 19, in get_template
246 raise TemplateDoesNotExist(template_name, chain=chain)
247 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
248
249The above exception (django/forms/errors/list/ul.html) was the direct cause of the following exception:
250 File "/opt/conda/envs/runtime/lib/python3.12/site-packages/django/core/handlers/exception.py", line 42, in inner
251 response = await get_response(request)
252 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
253 File "/opt/conda/envs/runtime/lib/python3.12/site-packages/django/core/handlers/base.py", line 284, in _get_response_async
254 response = await sync_to_async(
255
256 File "/opt/conda/envs/runtime/lib/python3.12/site-packages/django/template/response.py", line 114, in render
257 self.content = self.rendered_content
258 ^^^^^^^^^^^^^^^^^^^^^
259 File "/opt/conda/envs/runtime/lib/python3.12/site-packages/django/template/response.py", line 92, in rendered_content
260 return template.render(context, self._request)
261 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
262 File "/opt/conda/envs/runtime/lib/python3.12/site-packages/django/template/backends/django.py", line 109, in render
263 reraise(exc, self.backend)
264 ^^^^^^^^^^^^^^^^^^^^^^^^^^
265 File "/opt/conda/envs/runtime/lib/python3.12/site-packages/django/template/backends/django.py", line 130, in reraise
266 raise new from exc
267 ^^^^^^^^^^^^^^^^^^
268
269Exception Type: TemplateDoesNotExist at /admin_url/auth/user/add/
270Exception Value: django/forms/errors/list/ul.html
Back to Top