前提
herokuでhttps://note.com/on_bass/n/n0495484a2b2b を参考にdeploy branchまで進めましたがどうしてもエラーが出てきてしまいます。
発生している問題・エラーメッセージ
-----> Building on the Heroku-20 stack -----> Using buildpack: heroku/python -----> Python app detected -----> Using Python version specified in runtime.txt ! Python has released a security update! Please consider upgrading to python-3.8.10 Learn More: https://devcenter.heroku.com/articles/python-runtimes -----> Installing python-3.8.5 -----> Installing pip 20.2.4, setuptools 47.1.1 and wheel 0.36.2 -----> Installing SQLite3 -----> Installing requirements with pip Collecting asgiref==3.3.4 Downloading asgiref-3.3.4-py3-none-any.whl (22 kB) Collecting dj-database-url==0.5.0 Downloading dj_database_url-0.5.0-py2.py3-none-any.whl (5.5 kB) Collecting Django==3.2 Downloading Django-3.2-py3-none-any.whl (7.9 MB) Collecting django-heroku==0.3.1 Downloading django_heroku-0.3.1-py2.py3-none-any.whl (6.2 kB) Collecting et-xmlfile==1.0.1 Downloading et_xmlfile-1.0.1.tar.gz (8.4 kB) Collecting gunicorn==20.1.0 Downloading gunicorn-20.1.0-py3-none-any.whl (79 kB) Collecting jdcal==1.4.1 Downloading jdcal-1.4.1-py2.py3-none-any.whl (9.5 kB) Collecting openpyxl==3.0.5 Downloading openpyxl-3.0.5-py2.py3-none-any.whl (242 kB) Collecting psycopg2==2.8.6 Downloading psycopg2-2.8.6.tar.gz (383 kB) Collecting pytz==2021.1 Downloading pytz-2021.1-py2.py3-none-any.whl (510 kB) Collecting sqlparse==0.4.1 Downloading sqlparse-0.4.1-py3-none-any.whl (42 kB) Collecting whitenoise==5.2.0 Downloading whitenoise-5.2.0-py2.py3-none-any.whl (19 kB) Building wheels for collected packages: et-xmlfile, psycopg2 Building wheel for et-xmlfile (setup.py): started Building wheel for et-xmlfile (setup.py): finished with status 'done' Created wheel for et-xmlfile: filename=et_xmlfile-1.0.1-py3-none-any.whl size=8913 sha256=fdf432cf2dfbe081e12e7313785a481d6c89c21865704001eeb8621a0dae3d23 Stored in directory: /tmp/pip-ephem-wheel-cache-fprvxwu6/wheels/6e/df/38/abda47b884e3e25f9f9b6430e5ce44c47670758a50c0c51759 Building wheel for psycopg2 (setup.py): started Building wheel for psycopg2 (setup.py): finished with status 'done' Created wheel for psycopg2: filename=psycopg2-2.8.6-cp38-cp38-linux_x86_64.whl size=529005 sha256=87bfd445779ad09e21116ddbde744bcc9e0191f3e12cbdd2db0c05ff823142b8 Stored in directory: /tmp/pip-ephem-wheel-cache-fprvxwu6/wheels/70/5e/69/8a020d78c09043156a7df0b64529e460fbd922ca065c4b795c Successfully built et-xmlfile psycopg2 Installing collected packages: asgiref, dj-database-url, pytz, sqlparse, Django, psycopg2, whitenoise, django-heroku, et-xmlfile, gunicorn, jdcal, openpyxl Successfully installed Django-3.2 asgiref-3.3.4 dj-database-url-0.5.0 django-heroku-0.3.1 et-xmlfile-1.0.1 gunicorn-20.1.0 jdcal-1.4.1 openpyxl-3.0.5 psycopg2-2.8.6 pytz-2021.1 sqlparse-0.4.1 whitenoise-5.2.0 -----> $ python manage.py collectstatic --noinput Traceback (most recent call last): File "manage.py", line 22, in <module> main() File "manage.py", line 18, in main execute_from_command_line(sys.argv) File "/app/.heroku/python/lib/python3.8/site-packages/django/core/management/__init__.py", line 419, in execute_from_command_line utility.execute() File "/app/.heroku/python/lib/python3.8/site-packages/django/core/management/__init__.py", line 395, in execute django.setup() File "/app/.heroku/python/lib/python3.8/site-packages/django/__init__.py", line 24, in setup apps.populate(settings.INSTALLED_APPS) File "/app/.heroku/python/lib/python3.8/site-packages/django/apps/registry.py", line 91, in populate app_config = AppConfig.create(entry) File "/app/.heroku/python/lib/python3.8/site-packages/django/apps/config.py", line 224, in create import_module(entry) File "/app/.heroku/python/lib/python3.8/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1014, in _gcd_import File "<frozen importlib._bootstrap>", line 991, in _find_and_load File "<frozen importlib._bootstrap>", line 973, in _find_and_load_unlocked ModuleNotFoundError: No module named 'crispy_forms' ! Error while running '$ python manage.py collectstatic --noinput'. See traceback above for details. You may need to update application code to resolve this error. Or, you can disable collectstatic for this application: $ heroku config:set DISABLE_COLLECTSTATIC=1 https://devcenter.heroku.com/articles/django-assets ! Push rejected, failed to compile Python app. ! Push failed
試したこと
$heroku config:set DISABLE_COLLECTSTATIC=1 » Error: Missing required flag: » -a, --app APP app to run command against » See more help with --help
となります。
お忙しいところ恐れ入りますが教えていただけると幸いです。
あなたの回答
tips
プレビュー