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

質問編集履歴

3

追加情報

2020/12/28 09:08

投稿

Tomato_leaf
Tomato_leaf

スコア178

title CHANGED
File without changes
body CHANGED
@@ -3,7 +3,21 @@
3
3
  原因がわからず、上書き方法がわかりません。
4
4
 
5
5
  ```ここに言語を入力
6
+ WARNING: Package(s) not found: django
7
+ Traceback (most recent call last):
8
+ File "/home/hogehohe/.local/bin/pa_autoconfigure_django.py", line 47, in <module>
9
+ main(arguments['<git-repo-url>'], arguments['--domain'], arguments['--python'], nuke=arguments.get('--nuke'))
10
+ File "/home/hogehohe/.local/bin/pa_autoconfigure_django.py", line 36, in main
11
+ project.update_settings_file()
12
+ File "/home/hogehohe/.local/lib/python3.6/site-packages/pythonanywhere/django_project.py", line 74, in update_settings_file
13
+ new_django = version.parse(self.virtualenv.get_version("django")) >= version.parse("3.1")
14
+ File "/home/hogehohe/.local/lib/python3.6/site-packages/pythonanywhere/virtualenvs.py", line 32, in get_version
15
+ output = subprocess.check_output(commands).decode()
16
+ File "/usr/lib/python3.6/subprocess.py", line 356, in check_output
17
+ **kwargs).stdout
18
+ File "/usr/lib/python3.6/subprocess.py", line 438, in run
19
+ output=stdout, stderr=stderr)
6
- subprocess.CalledProcessError: Command '['/home/hogehoge/.virtualenvs/hogehoge.pythonanywhere.com/bin/pip', 'show', 'django']' returned non-zero exit status 1.
20
+ subprocess.CalledProcessError: Command '['/home/hogehohe/.virtualenvs/hogehohe.pythonanywhere.com/bin/pip', 'show', 'django']' returned non-zero exit status 1.
7
21
  ```
8
22
 
9
23
  以下は参考記事です。

2

追加情報

2020/12/28 09:08

投稿

Tomato_leaf
Tomato_leaf

スコア178

title CHANGED
File without changes
body CHANGED
@@ -19,7 +19,7 @@
19
19
 
20
20
  > もし、既に作ったアプリを上書きしたい場合は、
21
21
  ```ここに言語を入力
22
- $ pa_autoconfigure_django.py --python=3.8 https://github.com/[ユーザー名]/[プロジェクト名].git --nuke
22
+ $ pa_autoconfigure_django.py https://github.com/[ユーザー名]/[プロジェクト名].git --nuke
23
23
  ```
24
24
  > と、末尾に--nukeをつける。
25
25
 

1

追加情報

2020/12/24 09:09

投稿

Tomato_leaf
Tomato_leaf

スコア178

title CHANGED
File without changes
body CHANGED
File without changes