質問編集履歴

1

added log

2023/01/26 20:47

投稿

alizona
alizona

スコア126

test CHANGED
File without changes
test CHANGED
@@ -10,6 +10,45 @@
10
10
  ![イメージ説明](https://ddjkaamml8q8x.cloudfront.net/questions/2023-01-27/3d750f82-f15d-487b-b7b7-6df108dc7456.png)
11
11
 
12
12
  ![イメージ説明](https://ddjkaamml8q8x.cloudfront.net/questions/2023-01-27/6d26e505-d080-4185-86d2-439d63e60ee7.png)
13
+
14
+ heroku log です。
15
+ ```python
16
+ 2023-01-26T20:46:22.182084+00:00 app[web.1]: Internal Server Error: /admin/registration/post/
17
+ 2023-01-26T20:46:22.182088+00:00 app[web.1]: Traceback (most recent call last):
18
+ 2023-01-26T20:46:22.182088+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.10/site-packages/django/core/handlers/exception.py", line 55, in inner
19
+ 2023-01-26T20:46:22.182089+00:00 app[web.1]: response = get_response(request)
20
+ 2023-01-26T20:46:22.182089+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.10/site-packages/django/core/handlers/base.py", line 197, in _get_response
21
+ 2023-01-26T20:46:22.182090+00:00 app[web.1]: response = wrapped_callback(request, *callback_args, **callback_kwargs)
22
+ 2023-01-26T20:46:22.182090+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.10/site-packages/django/contrib/admin/options.py", line 686, in wrapper
23
+ 2023-01-26T20:46:22.182091+00:00 app[web.1]: return self.admin_site.admin_view(view)(*args, **kwargs)
24
+ 2023-01-26T20:46:22.182091+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.10/site-packages/django/utils/decorators.py", line 133, in _wrapped_view
25
+ 2023-01-26T20:46:22.182091+00:00 app[web.1]: response = view_func(request, *args, **kwargs)
26
+ 2023-01-26T20:46:22.182092+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.10/site-packages/django/views/decorators/cache.py", line 62, in _wrapped_view_func
27
+ 2023-01-26T20:46:22.182092+00:00 app[web.1]: response = view_func(request, *args, **kwargs)
28
+ 2023-01-26T20:46:22.182093+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.10/site-packages/django/contrib/admin/sites.py", line 242, in inner
29
+ 2023-01-26T20:46:22.182093+00:00 app[web.1]: return view(request, *args, **kwargs)
30
+ 2023-01-26T20:46:22.182093+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.10/site-packages/django/utils/decorators.py", line 46, in _wrapper
31
+ 2023-01-26T20:46:22.182093+00:00 app[web.1]: return bound_method(*args, **kwargs)
32
+ 2023-01-26T20:46:22.182094+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.10/site-packages/django/utils/decorators.py", line 133, in _wrapped_view
33
+ 2023-01-26T20:46:22.182094+00:00 app[web.1]: response = view_func(request, *args, **kwargs)
34
+ 2023-01-26T20:46:22.182094+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.10/site-packages/django/contrib/admin/options.py", line 2068, in changelist_view
35
+ 2023-01-26T20:46:22.182097+00:00 app[web.1]: "selection_note": _("0 of %(cnt)s selected") % {"cnt": len(cl.result_list)},
36
+ 2023-01-26T20:46:22.182097+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.10/site-packages/django/db/models/query.py", line 376, in __len__
37
+ 2023-01-26T20:46:22.182098+00:00 app[web.1]: self._fetch_all()
38
+ 2023-01-26T20:46:22.182098+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.10/site-packages/django/db/models/query.py", line 1867, in _fetch_all
39
+ 2023-01-26T20:46:22.182098+00:00 app[web.1]: self._result_cache = list(self._iterable_class(self))
40
+ 2023-01-26T20:46:22.182098+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.10/site-packages/django/db/models/query.py", line 117, in __iter__
41
+ 2023-01-26T20:46:22.182099+00:00 app[web.1]: for row in compiler.results_iter(results):
42
+ 2023-01-26T20:46:22.182099+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.10/site-packages/django/db/models/sql/compiler.py", line 1336, in apply_converters
43
+ 2023-01-26T20:46:22.182099+00:00 app[web.1]: value = converter(value, expression, connection)
44
+ 2023-01-26T20:46:22.182101+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.10/site-packages/django/db/backends/mysql/operations.py", line 331, in convert_datetimefield_value
45
+ 2023-01-26T20:46:22.182101+00:00 app[web.1]: value = timezone.make_aware(value, self.connection.timezone)
46
+ 2023-01-26T20:46:22.182101+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.10/site-packages/django/utils/timezone.py", line 290, in make_aware
47
+ 2023-01-26T20:46:22.182102+00:00 app[web.1]: if is_aware(value):
48
+ 2023-01-26T20:46:22.182102+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.10/site-packages/django/utils/timezone.py", line 256, in is_aware
49
+ 2023-01-26T20:46:22.182102+00:00 app[web.1]: return value.utcoffset() is not None
50
+ 2023-01-26T20:46:22.182103+00:00 app[web.1]: AttributeError: 'str' object has no attribute 'utcoffset'
51
+ ```
13
52
 
14
53
 
15
54
  views.py