django girsのデプロイの部分で詰まってしまいました。
初心者なので一体何をどうすればいいのかわかりません。
実行結果等は以下の通りです。
$ pa_autoconfigure_django.py --python=3.6 https://github.com/Kabos0809/my-first.git
< Running API sanity checks > \ ~<:>>>>>>>>> Traceback (most recent call last): File "/home/kabos/.local/bin/pa_autoconfigure_django.py", line 54, in <module> nuke=arguments.get('--nuke') File "/home/kabos/.local/bin/pa_autoconfigure_django.py", line 30, in main project.sanity_checks(nuke=nuke) File "/home/kabos/.local/lib/python3.6/site-packages/pythonanywhere/project.py", line 24, in sanity_checks self.webapp.sanity_checks(nuke=nuke) File "/home/kabos/.local/lib/python3.6/site-packages/pythonanywhere/api/webapp.py", line 42, in sanity_checks domain=self.domain pythonanywhere.exceptions.SanityException: You already have a webapp for kabos.pythonanywhere.com. Use the --nuke option if you want to replace it.
以下は--nukeオプションを付けた際の実行結果です。(追記: gihub.comになっていた部分を修正しましたが、同様のエラーが起きてしまいました。)
< Running API sanity checks > \ ~<:>>>>>>>>> Cloning into '/home/kabos/kabos.pythonanywhere.com'... remote: Enumerating objects: 36, done. remote: Counting objects: 100% (36/36), done. remote: Compressing objects: 100% (28/28), done. remote: Total 36 (delta 7), reused 36 (delta 7), pack-reused 0 Unpacking objects: 100% (36/36), 14.70 KiB | 24.00 KiB/s, done. < Creating virtualenv with Python3.6 > \ ~<:>>>>>>>>> Removing kabos.pythonanywhere.com... created virtual environment CPython3.6.13.final.0-64 in 6530ms creator CPython3Posix(dest=/home/kabos/.virtualenvs/kabos.pythonanywhere.com, clear=False, no_vcs_ignore=False, global=False) seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/home/kabos/.local/share/virtualenv) added seed packages: pip==21.1.2, setuptools==57.0.0, wheel==0.36.2 activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator virtualenvwrapper.user_scripts creating /home/kabos/.virtualenvs/kabos.pythonanywhere.com/bin/predeactivate virtualenvwrapper.user_scripts creating /home/kabos/.virtualenvs/kabos.pythonanywhere.com/bin/postdeactivate virtualenvwrapper.user_scripts creating /home/kabos/.virtualenvs/kabos.pythonanywhere.com/bin/preactivate virtualenvwrapper.user_scripts creating /home/kabos/.virtualenvs/kabos.pythonanywhere.com/bin/postactivate virtualenvwrapper.user_scripts creating /home/kabos/.virtualenvs/kabos.pythonanywhere.com/bin/get_env_details < Pip installing django (this may take a couple of minutes) > \ ~<:>>>>>>>>> Looking in links: /usr/share/pip-wheels Collecting django Using cached Django-3.2.4-py3-none-any.whl (7.9 MB) Collecting asgiref<4,>=3.3.2 Downloading asgiref-3.4.0-py3-none-any.whl (25 kB) Collecting sqlparse>=0.2.2 Using cached sqlparse-0.4.1-py3-none-any.whl (42 kB) Collecting pytz Using cached pytz-2021.1-py2.py3-none-any.whl (510 kB) Collecting typing-extensions Using cached typing_extensions-3.10.0.0-py3-none-any.whl (26 kB) Installing collected packages: typing-extensions, sqlparse, pytz, asgiref, django Successfully installed asgiref-3.4.0 django-3.2.4 pytz-2021.1 sqlparse-0.4.1 typing-extensions-3.10.0.0 < Creating web app via API > \ ~<:>>>>>>>>> < Adding static files mappings for /static/ and /media/ > \ ~<:>>>>>>>>> < Updating wsgi file at /var/www/kabos_pythonanywhere_com_wsgi.py > \ ~<:>>>>>>>>> < Updating settings.py > \ ~<:>>>>>>>>> < Running collectstatic > \ ~<:>>>>>>>>> Traceback (most recent call last): File "/home/kabos/kabos.pythonanywhere.com/manage.py", line 21, in <module> main() File "/home/kabos/kabos.pythonanywhere.com/manage.py", line 17, in main execute_from_command_line(sys.argv) File "/home/kabos/.virtualenvs/kabos.pythonanywhere.com/lib/python3.6/site-packages/django/core/management/__init__.py", line 419, in execute_from_command_line utility.execute() File "/home/kabos/.virtualenvs/kabos.pythonanywhere.com/lib/python3.6/site-packages/django/core/management/__init__.py", line 363, in execute settings.INSTALLED_APPS File "/home/kabos/.virtualenvs/kabos.pythonanywhere.com/lib/python3.6/site-packages/django/conf/__init__.py", line 82, in __getattr__ self._setup(name) File "/home/kabos/.virtualenvs/kabos.pythonanywhere.com/lib/python3.6/site-packages/django/conf/__init__.py", line 69, in _setup self._wrapped = Settings(settings_module) File "/home/kabos/.virtualenvs/kabos.pythonanywhere.com/lib/python3.6/site-packages/django/conf/__init__.py", line 170, in __init__ mod = importlib.import_module(self.SETTINGS_MODULE) File "/usr/local/lib/python3.6/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 994, in _gcd_import File "<frozen importlib._bootstrap>", line 971, in _find_and_load File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 665, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 678, in exec_module File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "/home/kabos/kabos.pythonanywhere.com/mysite/settings.py", line 125, in <module> MEDIA_ROOT = Path(BASE_DIR / 'media') NameError: name 'Path' is not defined Traceback (most recent call last): File "/home/kabos/.local/bin/pa_autoconfigure_django.py", line 54, in <module> nuke=arguments.get('--nuke') File "/home/kabos/.local/bin/pa_autoconfigure_django.py", line 39, in main project.run_collectstatic() File "/home/kabos/.local/lib/python3.6/site-packages/pythonanywhere/django_project.py", line 122, in run_collectstatic '--noinput', File "/usr/local/lib/python3.6/subprocess.py", line 311, in check_call raise CalledProcessError(retcode, cmd) 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.
有識者の方、対処法のご教授願います。