teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

3

個人情報の修正

2021/02/28 06:12

投稿

yayaya22
yayaya22

スコア51

title CHANGED
File without changes
body CHANGED
@@ -9,7 +9,7 @@
9
9
  ImproperlyConfigured at /
10
10
  You're using the staticfiles app without having set the STATIC_ROOT setting to a filesystem path.
11
11
  Request Method: GET
12
- Request URL: https://twitter-clone-yasuto.herokuapp.com/
12
+ Request URL: https://*****/
13
13
  Django Version: 3.1.6
14
14
  Exception Type: ImproperlyConfigured
15
15
  Exception Value:

2

情報の修正

2021/02/28 06:11

投稿

yayaya22
yayaya22

スコア51

title CHANGED
File without changes
body CHANGED
@@ -137,7 +137,4 @@
137
137
 
138
138
  追記:
139
139
  django-crispy-formsをrequirements.txtに追記したらアップはしました。
140
- その後また上記の別エラーです。多分静的ファイル関係かと。。
140
+ その後また上記の別エラーです。多分静的ファイル関係かと。。
141
-
142
- こちら当方git hubの内容です。
143
- https://github.com/yasuto-dev/twitter_clone

1

その後エラーが更新しました。

2021/02/25 15:23

投稿

yayaya22
yayaya22

スコア51

title CHANGED
File without changes
body CHANGED
@@ -6,21 +6,127 @@
6
6
  ### 発生している問題・エラーメッセージ
7
7
 
8
8
  ```
9
- 2021-02-19T05:24:35.621269+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.8/site-packages/gunicorn/arbiter.py", line 525, in reap_workers
10
- 2021-02-19T05:24:35.621517+00:00 app[web.1]: raise HaltServer(reason, self.WORKER_BOOT_ERROR)
11
- 2021-02-19T05:24:35.621565+00:00 app[web.1]: gunicorn.errors.HaltServer: <HaltServer 'Worker failed to boot.' 3>
12
- 2021-02-19T05:24:35.706192+00:00 heroku[web.1]: Process exited with status 1
13
- 2021-02-19T05:24:35.764746+00:00 heroku[web.1]: State changed from starting to crashed
14
- 2021-02-19T05:24:36.000000+00:00 app[api]: Build succeeded
15
- 2021-02-19T05:24:57.234231+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=twitter-clone-yasuto.herokuapp.com request_id=c1069565-2a42-4ec4-90d5-a9973204b762 fwd="60.32.64.162" dyno= connect= service= status=503 bytes= protocol=https
16
- 2021-02-19T05:24:57.531694+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=twitter-clone-yasuto.herokuapp.com request_id=42dab2a9-2ce6-436f-837a-62da5c1d99e2 fwd="60.32.64.162" dyno= connect= service= status=503 bytes= protocol=https
17
- 2021-02-19T05:25:40.285655+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=twitter-clone-yasuto.herokuapp.com request_id=d12ec37f-3a1a-41fc-b6c1-175c1d83577e fwd="60.32.64.162" dyno= connect= service= status=503 bytes= protocol=https
18
- 2021-02-19T05:25:40.525856+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=twitter-clone-yasuto.herokuapp.com request_id=4d09b7d4-6cc5-4ed0-b4cc-7e8c992d2007 fwd="60.32.64.162" dyno= connect= service= status=503 bytes= protocol=https
9
+ ImproperlyConfigured at /
10
+ You're using the staticfiles app without having set the STATIC_ROOT setting to a filesystem path.
11
+ Request Method: GET
12
+ Request URL: https://twitter-clone-yasuto.herokuapp.com/
13
+ Django Version: 3.1.6
14
+ Exception Type: ImproperlyConfigured
15
+ Exception Value:
16
+ You're using the staticfiles app without having set the STATIC_ROOT setting to a filesystem path.
17
+ Exception Location: /app/.heroku/python/lib/python3.8/site-packages/django/contrib/staticfiles/storage.py, line 38, in path
18
+ Python Executable: /app/.heroku/python/bin/python
19
+ Python Version: 3.8.7
20
+ Python Path:
21
+ ['/app/.heroku/python/bin',
22
+ '/app',
23
+ '/app/.heroku/python/lib/python38.zip',
24
+ '/app/.heroku/python/lib/python3.8',
25
+ '/app/.heroku/python/lib/python3.8/lib-dynload',
26
+ '/app/.heroku/python/lib/python3.8/site-packages']
27
+ Server time: Fri, 19 Feb 2021 17:16:54 +0900
28
+ Error during template rendering
29
+ In template /app/templates/tweet/base.html, error at line 11
19
30
 
31
+ You're using the staticfiles app without having set the STATIC_ROOT setting to a filesystem path.
32
+ 1 {% load static %}
33
+ 2
34
+ 3 <!DOCTYPE html>
35
+ 4 <html lang="en">
36
+ 5
37
+ 6 <head>
38
+ 7 <meta charset="UTF-8">
39
+ 8 <title>twitter_clone</title>
40
+ 9 <link href="https://unpkg.com/tailwindcss@^1.0/dist/tailwind.min.css" rel="stylesheet">
41
+ 10 <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/GrayGrids/LineIcons/LineIcons.css">
42
+ 11 <link rel="stylesheet" href="{% static 'css/stylesheets/screen.css' %}">
43
+ 12 <link rel="icon" type="image/png" href="{% static 'img/logo.png' %}">
44
+ 13 </head>
20
- ```
45
+ 14
46
+ 15 <body class="bg-white">
47
+ 16
48
+ 17 <!-- wrapper start -->
49
+ 18 <div class="">
50
+ 19
51
+ 20 <!-- container start -->
52
+ 21 <div class="container mx-auto">
53
+ Traceback Switch to copy-and-paste view
54
+ /app/.heroku/python/lib/python3.8/site-packages/django/core/handlers/exception.py, line 47, in inner
55
+ response = get_response(request) …
56
+ ▶ Local vars
57
+ /app/.heroku/python/lib/python3.8/site-packages/django/core/handlers/base.py, line 204, in _get_response
58
+ response = response.render() …
59
+ ▶ Local vars
60
+ /app/.heroku/python/lib/python3.8/site-packages/django/template/response.py, line 105, in render
61
+ self.content = self.rendered_content …
62
+ ▶ Local vars
63
+ /app/.heroku/python/lib/python3.8/site-packages/django/template/response.py, line 83, in rendered_content
64
+ return template.render(context, self._request) …
65
+ ▶ Local vars
66
+ /app/.heroku/python/lib/python3.8/site-packages/django/template/backends/django.py, line 61, in render
67
+ return self.template.render(context) …
68
+ ▶ Local vars
69
+ /app/.heroku/python/lib/python3.8/site-packages/django/template/base.py, line 170, in render
70
+ return self._render(context) …
71
+ ▶ Local vars
72
+ /app/.heroku/python/lib/python3.8/site-packages/django/template/base.py, line 162, in _render
73
+ return self.nodelist.render(context) …
74
+ ▶ Local vars
75
+ /app/.heroku/python/lib/python3.8/site-packages/django/template/base.py, line 938, in render
76
+ bit = node.render_annotated(context) …
77
+ ▶ Local vars
78
+ /app/.heroku/python/lib/python3.8/site-packages/django/template/base.py, line 905, in render_annotated
79
+ return self.render(context) …
80
+ ▶ Local vars
81
+ /app/.heroku/python/lib/python3.8/site-packages/django/template/loader_tags.py, line 150, in render
82
+ return compiled_parent._render(context) …
83
+ ▶ Local vars
84
+ /app/.heroku/python/lib/python3.8/site-packages/django/template/base.py, line 162, in _render
85
+ return self.nodelist.render(context) …
86
+ ▶ Local vars
87
+ /app/.heroku/python/lib/python3.8/site-packages/django/template/base.py, line 938, in render
88
+ bit = node.render_annotated(context) …
89
+ ▶ Local vars
90
+ /app/.heroku/python/lib/python3.8/site-packages/django/template/base.py, line 905, in render_annotated
91
+ return self.render(context) …
92
+ ▶ Local vars
93
+ /app/.heroku/python/lib/python3.8/site-packages/django/templatetags/static.py, line 106, in render
94
+ url = self.url(context) …
95
+ ▶ Local vars
96
+ /app/.heroku/python/lib/python3.8/site-packages/django/templatetags/static.py, line 103, in url
97
+ return self.handle_simple(path) …
98
+ ▶ Local vars
99
+ /app/.heroku/python/lib/python3.8/site-packages/django/templatetags/static.py, line 118, in handle_simple
100
+ return staticfiles_storage.url(path) …
101
+ ▶ Local vars
102
+ /app/.heroku/python/lib/python3.8/site-packages/django/utils/functional.py, line 240, in inner
103
+ self._setup() …
104
+ ▶ Local vars
105
+ /app/.heroku/python/lib/python3.8/site-packages/django/contrib/staticfiles/storage.py, line 438, in _setup
106
+ self._wrapped = get_storage_class(settings.STATICFILES_STORAGE)() …
107
+ ▶ Local vars
108
+ /app/.heroku/python/lib/python3.8/site-packages/whitenoise/storage.py, line 129, in __init__
109
+ super().__init__(*args, **kwargs) …
110
+ ▶ Local vars
111
+ /app/.heroku/python/lib/python3.8/site-packages/django/contrib/staticfiles/storage.py, line 373, in __init__
112
+ self.hashed_files = self.load_manifest() …
113
+ ▶ Local vars
114
+ /app/.heroku/python/lib/python3.8/site-packages/django/contrib/staticfiles/storage.py, line 383, in load_manifest
115
+ content = self.read_manifest() …
116
+ ▶ Local vars
117
+ /app/.heroku/python/lib/python3.8/site-packages/django/contrib/staticfiles/storage.py, line 377, in read_manifest
118
+ with self.open(self.manifest_name) as manifest: …
119
+ ▶ Local vars
120
+ /app/.heroku/python/lib/python3.8/site-packages/django/core/files/storage.py, line 36, in open
121
+ return self._open(name, mode) …
122
+ ▶ Local vars
123
+ /app/.heroku/python/lib/python3.8/site-packages/django/core/files/storage.py, line 231, in _open
124
+ return File(open(self.path(name), mode)) …
125
+ ▶ Local vars
126
+ /app/.heroku/python/lib/python3.8/site-packages/django/contrib/staticfiles/storage.py, line 38, in path
127
+ raise ImproperlyConfigured("You're using the staticfiles app " …
128
+ ▶ Local vars
21
129
 
22
-
23
-
24
130
  ```
25
131
 
26
132
  ### 試したこと
@@ -29,5 +135,9 @@
29
135
  https://devcenter.heroku.com/ja/articles/django-assets
30
136
  の記事を実行し、環境変数を変えwhitenoiseを入れてエラーは出なくなりました。
31
137
 
138
+ 追記:
139
+ django-crispy-formsをrequirements.txtに追記したらアップはしました。
140
+ その後また上記の別エラーです。多分静的ファイル関係かと。。
141
+
32
142
  こちら当方git hubの内容です。
33
143
  https://github.com/yasuto-dev/twitter_clone