質問編集履歴
3
個人情報の修正
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://
|
12
|
+
Request URL: https://*****/
|
13
13
|
Django Version: 3.1.6
|
14
14
|
Exception Type: ImproperlyConfigured
|
15
15
|
Exception Value:
|
2
情報の修正
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
その後エラーが更新しました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -6,21 +6,127 @@
|
|
6
6
|
### 発生している問題・エラーメッセージ
|
7
7
|
|
8
8
|
```
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
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
|