Django girlsのチュートリアルでデプロイをしようとしています。
一度デプロイが成功しましたがコードが間違っていたためうまくいかなかったので再チャレンジすることにしました。
リンク
https://tutorial.djangogirls.org/ja/deploy/
pip3.6 install --user pythonanywhere
とたたくと
Looking in links: /usr/share/pip-wheels Requirement already satisfied: pythonanywhere in ./.local/lib/python3.6/site-packages (0.6) Requirement already satisfied: docopt in /usr/lib/python3.6/site-packages (from pythonanywhere) (0.6.2) Requirement already satisfied: requests in /usr/lib/python3.6/site-packages (from pythonanywhere) (2.19.1) Requirement already satisfied: certifi>=2017.4.17 in /usr/lib/python3.6/site-packages (from requests->pythonanywhere) (2018.4.16) Requirement already satisfied: idna<2.8,>=2.5 in /usr/lib/python3.6/site-packages (from requests->pythonanywhere) (2.7) Requirement already satisfied: urllib3<1.24,>=1.21.1 in /usr/lib/python3.6/site-packages (from requests->pythonanywhere) (1.23) Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /usr/lib/python3.6/site-packages (from requests->pythonanywhere) (3.0.4) 07:39 ~ $ 07:39 ~ $ pa_autoconfigure_django.py https://github.com/sr2460/my-first-blog.git
と出るのでおそらく以前のデータが何か残っているのだと思います。
さらに
pa_autoconfigure_django.py https://github.com/sr2460/my-first-blog.git
と叩くと
File "/home/sr2460/.local/bin/pa_autoconfigure_django.py", line 52, in <module> main(arguments['<git-repo-url>'], arguments['--domain'], arguments['--python'], nuke=arguments.get('--nuke')) File "/home/sr2460/.local/bin/pa_autoconfigure_django.py", line 34, in main project.sanity_checks(nuke=nuke) File "/home/sr2460/.local/lib/python3.6/site-packages/pythonanywhere/project.py", line 31, in sanity_checks domain=self.domain pythonanywhere.exceptions.SanityException: You already have a virtualenv for sr2460.pythonanywhere.com. Use the --nuke option if you want to replace it.
と表示されます。
さらに
python manage.py createsuperuser
python: can't open file 'manage.py': [Errno 2] No such file or directory
とエラーが出てしまいます。
初回はこのようなエラーが出なかったのでUse the --nuke option if you want to replace it.の部分のnuke optionでreplaceをすればよいのだと思ったのですが、検索してもそのような方法は出てきませんでした。
一度デプロイが出来たのでなにか前回の環境が悪さをしていると思うのですが、他にも何か気が付いたことがあれば教えていただければと思います。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/10/21 09:13