質問編集履歴
2
初心者アイコンを追加しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
初心者なので一体何をどうすればいいのかわかりません。
|
4
4
|
|
5
|
-
実行結果等は以下の通りです
|
5
|
+
実行結果等は以下の通りです。
|
6
6
|
|
7
7
|
```
|
8
8
|
|
1
gihub.comの部分を修正し、実行した結果を掲載いたしました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -50,7 +50,7 @@
|
|
50
50
|
|
51
51
|
|
52
52
|
|
53
|
-
以下は--nukeオプションを付けた際の実行結果です
|
53
|
+
以下は--nukeオプションを付けた際の実行結果です。(追記: gihub.comになっていた部分を修正しましたが、同様のエラーが起きてしまいました。)
|
54
54
|
|
55
55
|
```
|
56
56
|
|
@@ -64,228 +64,190 @@
|
|
64
64
|
|
65
65
|
Cloning into '/home/kabos/kabos.pythonanywhere.com'...
|
66
66
|
|
67
|
+
remote: Enumerating objects: 36, done.
|
68
|
+
|
69
|
+
remote: Counting objects: 100% (36/36), done.
|
70
|
+
|
71
|
+
remote: Compressing objects: 100% (28/28), done.
|
72
|
+
|
73
|
+
remote: Total 36 (delta 7), reused 36 (delta 7), pack-reused 0
|
74
|
+
|
75
|
+
Unpacking objects: 100% (36/36), 14.70 KiB | 24.00 KiB/s, done.
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
< Creating virtualenv with Python3.6 >
|
80
|
+
|
81
|
+
\
|
82
|
+
|
83
|
+
~<:>>>>>>>>>
|
84
|
+
|
85
|
+
Removing kabos.pythonanywhere.com...
|
86
|
+
|
87
|
+
created virtual environment CPython3.6.13.final.0-64 in 6530ms
|
88
|
+
|
89
|
+
creator CPython3Posix(dest=/home/kabos/.virtualenvs/kabos.pythonanywhere.com, clear=False, no_vcs_ignore=False, global=False)
|
90
|
+
|
91
|
+
seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/home/kabos/.local/share/virtualenv)
|
92
|
+
|
93
|
+
added seed packages: pip==21.1.2, setuptools==57.0.0, wheel==0.36.2
|
94
|
+
|
95
|
+
activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator
|
96
|
+
|
97
|
+
virtualenvwrapper.user_scripts creating /home/kabos/.virtualenvs/kabos.pythonanywhere.com/bin/predeactivate
|
98
|
+
|
67
|
-
|
99
|
+
virtualenvwrapper.user_scripts creating /home/kabos/.virtualenvs/kabos.pythonanywhere.com/bin/postdeactivate
|
100
|
+
|
101
|
+
virtualenvwrapper.user_scripts creating /home/kabos/.virtualenvs/kabos.pythonanywhere.com/bin/preactivate
|
102
|
+
|
103
|
+
virtualenvwrapper.user_scripts creating /home/kabos/.virtualenvs/kabos.pythonanywhere.com/bin/postactivate
|
104
|
+
|
105
|
+
virtualenvwrapper.user_scripts creating /home/kabos/.virtualenvs/kabos.pythonanywhere.com/bin/get_env_details
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
< Pip installing django (this may take a couple of minutes) >
|
110
|
+
|
111
|
+
\
|
112
|
+
|
113
|
+
~<:>>>>>>>>>
|
114
|
+
|
115
|
+
Looking in links: /usr/share/pip-wheels
|
116
|
+
|
117
|
+
Collecting django
|
118
|
+
|
119
|
+
Using cached Django-3.2.4-py3-none-any.whl (7.9 MB)
|
120
|
+
|
121
|
+
Collecting asgiref<4,>=3.3.2
|
122
|
+
|
123
|
+
Downloading asgiref-3.4.0-py3-none-any.whl (25 kB)
|
124
|
+
|
125
|
+
Collecting sqlparse>=0.2.2
|
126
|
+
|
127
|
+
Using cached sqlparse-0.4.1-py3-none-any.whl (42 kB)
|
128
|
+
|
129
|
+
Collecting pytz
|
130
|
+
|
131
|
+
Using cached pytz-2021.1-py2.py3-none-any.whl (510 kB)
|
132
|
+
|
133
|
+
Collecting typing-extensions
|
134
|
+
|
135
|
+
Using cached typing_extensions-3.10.0.0-py3-none-any.whl (26 kB)
|
136
|
+
|
137
|
+
Installing collected packages: typing-extensions, sqlparse, pytz, asgiref, django
|
138
|
+
|
139
|
+
Successfully installed asgiref-3.4.0 django-3.2.4 pytz-2021.1 sqlparse-0.4.1 typing-extensions-3.10.0.0
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
< Creating web app via API >
|
144
|
+
|
145
|
+
\
|
146
|
+
|
147
|
+
~<:>>>>>>>>>
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
< Adding static files mappings for /static/ and /media/ >
|
152
|
+
|
153
|
+
\
|
154
|
+
|
155
|
+
~<:>>>>>>>>>
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
< Updating wsgi file at /var/www/kabos_pythonanywhere_com_wsgi.py >
|
160
|
+
|
161
|
+
\
|
162
|
+
|
163
|
+
~<:>>>>>>>>>
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
< Updating settings.py >
|
168
|
+
|
169
|
+
\
|
170
|
+
|
171
|
+
~<:>>>>>>>>>
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
< Running collectstatic >
|
176
|
+
|
177
|
+
\
|
178
|
+
|
179
|
+
~<:>>>>>>>>>
|
68
180
|
|
69
181
|
Traceback (most recent call last):
|
70
182
|
|
183
|
+
File "/home/kabos/kabos.pythonanywhere.com/manage.py", line 21, in <module>
|
184
|
+
|
185
|
+
main()
|
186
|
+
|
187
|
+
File "/home/kabos/kabos.pythonanywhere.com/manage.py", line 17, in main
|
188
|
+
|
189
|
+
execute_from_command_line(sys.argv)
|
190
|
+
|
191
|
+
File "/home/kabos/.virtualenvs/kabos.pythonanywhere.com/lib/python3.6/site-packages/django/core/management/__init__.py", line 419, in execute_from_command_line
|
192
|
+
|
193
|
+
utility.execute()
|
194
|
+
|
195
|
+
File "/home/kabos/.virtualenvs/kabos.pythonanywhere.com/lib/python3.6/site-packages/django/core/management/__init__.py", line 363, in execute
|
196
|
+
|
197
|
+
settings.INSTALLED_APPS
|
198
|
+
|
199
|
+
File "/home/kabos/.virtualenvs/kabos.pythonanywhere.com/lib/python3.6/site-packages/django/conf/__init__.py", line 82, in __getattr__
|
200
|
+
|
201
|
+
self._setup(name)
|
202
|
+
|
203
|
+
File "/home/kabos/.virtualenvs/kabos.pythonanywhere.com/lib/python3.6/site-packages/django/conf/__init__.py", line 69, in _setup
|
204
|
+
|
205
|
+
self._wrapped = Settings(settings_module)
|
206
|
+
|
207
|
+
File "/home/kabos/.virtualenvs/kabos.pythonanywhere.com/lib/python3.6/site-packages/django/conf/__init__.py", line 170, in __init__
|
208
|
+
|
209
|
+
mod = importlib.import_module(self.SETTINGS_MODULE)
|
210
|
+
|
211
|
+
File "/usr/local/lib/python3.6/importlib/__init__.py", line 126, in import_module
|
212
|
+
|
213
|
+
return _bootstrap._gcd_import(name[level:], package, level)
|
214
|
+
|
215
|
+
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
|
216
|
+
|
217
|
+
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
|
218
|
+
|
219
|
+
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
|
220
|
+
|
221
|
+
File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
|
222
|
+
|
223
|
+
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
|
224
|
+
|
225
|
+
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
|
226
|
+
|
227
|
+
File "/home/kabos/kabos.pythonanywhere.com/mysite/settings.py", line 125, in <module>
|
228
|
+
|
229
|
+
MEDIA_ROOT = Path(BASE_DIR / 'media')
|
230
|
+
|
231
|
+
NameError: name 'Path' is not defined
|
232
|
+
|
233
|
+
Traceback (most recent call last):
|
234
|
+
|
71
235
|
File "/home/kabos/.local/bin/pa_autoconfigure_django.py", line 54, in <module>
|
72
236
|
|
73
237
|
nuke=arguments.get('--nuke')
|
74
238
|
|
75
|
-
File "/home/kabos/.local/bin/pa_autoconfigure_django.py", line 3
|
239
|
+
File "/home/kabos/.local/bin/pa_autoconfigure_django.py", line 39, in main
|
76
|
-
|
240
|
+
|
77
|
-
project.
|
241
|
+
project.run_collectstatic()
|
78
|
-
|
242
|
+
|
79
|
-
File "/home/kabos/.local/lib/python3.6/site-packages/pythonanywhere/django_project.py", line 1
|
243
|
+
File "/home/kabos/.local/lib/python3.6/site-packages/pythonanywhere/django_project.py", line 122, in run_collectstatic
|
80
|
-
|
244
|
+
|
81
|
-
|
245
|
+
'--noinput',
|
82
246
|
|
83
247
|
File "/usr/local/lib/python3.6/subprocess.py", line 311, in check_call
|
84
248
|
|
85
249
|
raise CalledProcessError(retcode, cmd)
|
86
250
|
|
87
|
-
subprocess.CalledProcessError: Command '['git', 'clone', 'https://gihub.com/kabos0809/my-first.git', '/home/kabos/kabos.pythonanywhere.com']' returned non-zero exit status 128.
|
88
|
-
|
89
|
-
17:40 ~ $ python manage.py createsuperuser
|
90
|
-
|
91
|
-
python: can't open file '/home/kabos/manage.py': [Errno 2] No such file or directory
|
92
|
-
|
93
|
-
17:41 ~ $ pa_autoconfigure_django.py --python=3.6 https://github.com/Kabos0809/my-first.git --nuke
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
< Running API sanity checks >
|
98
|
-
|
99
|
-
\
|
100
|
-
|
101
|
-
~<:>>>>>>>>>
|
102
|
-
|
103
|
-
Cloning into '/home/kabos/kabos.pythonanywhere.com'...
|
104
|
-
|
105
|
-
remote: Enumerating objects: 36, done.
|
106
|
-
|
107
|
-
remote: Counting objects: 100% (36/36), done.
|
108
|
-
|
109
|
-
remote: Compressing objects: 100% (28/28), done.
|
110
|
-
|
111
|
-
remote: Total 36 (delta 7), reused 36 (delta 7), pack-reused 0
|
112
|
-
|
113
|
-
Unpacking objects: 100% (36/36), 14.70 KiB | 26.00 KiB/s, done.
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
< Creating virtualenv with Python3.6 >
|
118
|
-
|
119
|
-
\
|
120
|
-
|
121
|
-
~<:>>>>>>>>>
|
122
|
-
|
123
|
-
Removing kabos.pythonanywhere.com...
|
124
|
-
|
125
|
-
created virtual environment CPython3.6.13.final.0-64 in 5624ms
|
126
|
-
|
127
|
-
creator CPython3Posix(dest=/home/kabos/.virtualenvs/kabos.pythonanywhere.com, clear=False, no_vcs_ignore=False, global=False)
|
128
|
-
|
129
|
-
seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/home/kabos/.local/share/virtualenv)
|
130
|
-
|
131
|
-
added seed packages: pip==21.1.2, setuptools==57.0.0, wheel==0.36.2
|
132
|
-
|
133
|
-
activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator
|
134
|
-
|
135
|
-
virtualenvwrapper.user_scripts creating /home/kabos/.virtualenvs/kabos.pythonanywhere.com/bin/predeactivate
|
136
|
-
|
137
|
-
virtualenvwrapper.user_scripts creating /home/kabos/.virtualenvs/kabos.pythonanywhere.com/bin/postdeactivate
|
138
|
-
|
139
|
-
virtualenvwrapper.user_scripts creating /home/kabos/.virtualenvs/kabos.pythonanywhere.com/bin/preactivate
|
140
|
-
|
141
|
-
virtualenvwrapper.user_scripts creating /home/kabos/.virtualenvs/kabos.pythonanywhere.com/bin/postactivate
|
142
|
-
|
143
|
-
virtualenvwrapper.user_scripts creating /home/kabos/.virtualenvs/kabos.pythonanywhere.com/bin/get_env_details
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
< Pip installing django (this may take a couple of minutes) >
|
148
|
-
|
149
|
-
\
|
150
|
-
|
151
|
-
~<:>>>>>>>>>
|
152
|
-
|
153
|
-
Looking in links: /usr/share/pip-wheels
|
154
|
-
|
155
|
-
Collecting django
|
156
|
-
|
157
|
-
Using cached Django-3.2.4-py3-none-any.whl (7.9 MB)
|
158
|
-
|
159
|
-
Collecting pytz
|
160
|
-
|
161
|
-
Using cached pytz-2021.1-py2.py3-none-any.whl (510 kB)
|
162
|
-
|
163
|
-
Collecting asgiref<4,>=3.3.2
|
164
|
-
|
165
|
-
Using cached asgiref-3.3.4-py3-none-any.whl (22 kB)
|
166
|
-
|
167
|
-
Collecting sqlparse>=0.2.2
|
168
|
-
|
169
|
-
Using cached sqlparse-0.4.1-py3-none-any.whl (42 kB)
|
170
|
-
|
171
|
-
Collecting typing-extensions
|
172
|
-
|
173
|
-
Using cached typing_extensions-3.10.0.0-py3-none-any.whl (26 kB)
|
174
|
-
|
175
|
-
Installing collected packages: typing-extensions, sqlparse, pytz, asgiref, django
|
176
|
-
|
177
|
-
Successfully installed asgiref-3.3.4 django-3.2.4 pytz-2021.1 sqlparse-0.4.1 typing-extensions-3.10.0.0
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
< Creating web app via API >
|
182
|
-
|
183
|
-
\
|
184
|
-
|
185
|
-
~<:>>>>>>>>>
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
< Adding static files mappings for /static/ and /media/ >
|
190
|
-
|
191
|
-
\
|
192
|
-
|
193
|
-
~<:>>>>>>>>>
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
< Updating wsgi file at /var/www/kabos_pythonanywhere_com_wsgi.py >
|
198
|
-
|
199
|
-
\
|
200
|
-
|
201
|
-
~<:>>>>>>>>>
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
< Updating settings.py >
|
206
|
-
|
207
|
-
\
|
208
|
-
|
209
|
-
~<:>>>>>>>>>
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
< Running collectstatic >
|
214
|
-
|
215
|
-
\
|
216
|
-
|
217
|
-
~<:>>>>>>>>>
|
218
|
-
|
219
|
-
Traceback (most recent call last):
|
220
|
-
|
221
|
-
File "/home/kabos/kabos.pythonanywhere.com/manage.py", line 21, in <module>
|
222
|
-
|
223
|
-
main()
|
224
|
-
|
225
|
-
File "/home/kabos/kabos.pythonanywhere.com/manage.py", line 17, in main
|
226
|
-
|
227
|
-
execute_from_command_line(sys.argv)
|
228
|
-
|
229
|
-
File "/home/kabos/.virtualenvs/kabos.pythonanywhere.com/lib/python3.6/site-packages/django/core/management/__init__.py", line 419, in execute_from_command_line
|
230
|
-
|
231
|
-
utility.execute()
|
232
|
-
|
233
|
-
File "/home/kabos/.virtualenvs/kabos.pythonanywhere.com/lib/python3.6/site-packages/django/core/management/__init__.py", line 363, in execute
|
234
|
-
|
235
|
-
settings.INSTALLED_APPS
|
236
|
-
|
237
|
-
File "/home/kabos/.virtualenvs/kabos.pythonanywhere.com/lib/python3.6/site-packages/django/conf/__init__.py", line 82, in __getattr__
|
238
|
-
|
239
|
-
self._setup(name)
|
240
|
-
|
241
|
-
File "/home/kabos/.virtualenvs/kabos.pythonanywhere.com/lib/python3.6/site-packages/django/conf/__init__.py", line 69, in _setup
|
242
|
-
|
243
|
-
self._wrapped = Settings(settings_module)
|
244
|
-
|
245
|
-
File "/home/kabos/.virtualenvs/kabos.pythonanywhere.com/lib/python3.6/site-packages/django/conf/__init__.py", line 170, in __init__
|
246
|
-
|
247
|
-
mod = importlib.import_module(self.SETTINGS_MODULE)
|
248
|
-
|
249
|
-
File "/usr/local/lib/python3.6/importlib/__init__.py", line 126, in import_module
|
250
|
-
|
251
|
-
return _bootstrap._gcd_import(name[level:], package, level)
|
252
|
-
|
253
|
-
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
|
254
|
-
|
255
|
-
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
|
256
|
-
|
257
|
-
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
|
258
|
-
|
259
|
-
File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
|
260
|
-
|
261
|
-
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
|
262
|
-
|
263
|
-
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
|
264
|
-
|
265
|
-
File "/home/kabos/kabos.pythonanywhere.com/mysite/settings.py", line 125, in <module>
|
266
|
-
|
267
|
-
MEDIA_ROOT = Path(BASE_DIR / 'media')
|
268
|
-
|
269
|
-
NameError: name 'Path' is not defined
|
270
|
-
|
271
|
-
Traceback (most recent call last):
|
272
|
-
|
273
|
-
File "/home/kabos/.local/bin/pa_autoconfigure_django.py", line 54, in <module>
|
274
|
-
|
275
|
-
nuke=arguments.get('--nuke')
|
276
|
-
|
277
|
-
File "/home/kabos/.local/bin/pa_autoconfigure_django.py", line 39, in main
|
278
|
-
|
279
|
-
project.run_collectstatic()
|
280
|
-
|
281
|
-
File "/home/kabos/.local/lib/python3.6/site-packages/pythonanywhere/django_project.py", line 122, in run_collectstatic
|
282
|
-
|
283
|
-
'--noinput',
|
284
|
-
|
285
|
-
File "/usr/local/lib/python3.6/subprocess.py", line 311, in check_call
|
286
|
-
|
287
|
-
raise CalledProcessError(retcode, cmd)
|
288
|
-
|
289
251
|
subprocess.CalledProcessError: Command '['/home/kabos/.virtualenvs/kabos.pythonanywhere.com/bin/python', '/home/kabos/kabos.pythonanywhere.com/manage.py', 'collectstatic', '--noinput']' returned non-zero exit status 1.
|
290
252
|
|
291
253
|
|