Remote rejected main -> main (pre-receive hook declined) Heroku

Я пытаюсь развернуть свое приложение Django на Heroku, и когда я выполняю команду "git push heroku main", оно, кажется, успешно загружается, но я получаю эту ошибку

$ git push heroku main
Enumerating objects: 836, done.
Counting objects: 100% (836/836), done.
Delta compression using up to 4 threads
Compressing objects: 100% (738/738), done.
Writing objects: 100% (836/836), 12.68 MiB | 317.00 KiB/s, done.
Total 836 (delta 480), reused 0 (delta 0), pack-reused 0
remote: Compressing source files... done.
remote: Building source:
remote: 
remote: -----> Building on the Heroku-20 stack
remote: -----> Determining which buildpack to use for this app
remote: -----> Python app detected
remote: -----> Using Python version specified in runtime.txt
remote:  !     Requested runtime (python 3.10.1) is not available for this stack (heroku-20).
remote:  !     Aborting.  More info: https://devcenter.heroku.com/articles/python-support
remote:  !     Push rejected, failed to compile Python app.
remote: 
remote:  !     Push failed
remote: Verifying deploy...
remote:
remote: !       Push rejected to djanpro.
remote:
To https://git.heroku.com/djanpro.git
 ! [remote rejected] main -> main (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/djanpro.git'

Папка проекта называется DjanPro, но когда я сделал "heroku create", он не позволил мне поставить строчные имена, поэтому мне пришлось поставить djanpro, я не знаю, влияет ли это или нет, в чем проблема. Если бы вы могли сказать мне, что я должен изменить, я был бы очень благодарен :)

Settings.py:

import os 
from django.core.wsgi import get_wsgi_application
from whitenoise.django import DjangoWhiteNoise
import dj_database_url
import django_heroku

STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'

import dj_database_url
db_from_env = dj_database_url.config(conn_max_age=500)
DATABASES['default'].update(db_from_env)
Вернуться на верх