Когда я пытаюсь развернуть мой Django rest API с помощью Heroku, я получаю следующее:
-----> Python app detected
Using supported version of Python 3.6 (python-3.6.6)
-----> Installing python-3.6.6
-----> Installing pip
-----> Installing SQLite3
-----> Installing requirements with pip
Collecting Python==3.5.1 (from -r /tmp/build_eff222df1413c9c747fe9d073117baf7/requirements.txt (line 1))
Could not find a version that satisfies the requirement Python==3.5.1 (from -r /tmp/build_eff222df1413c9c747fe9d073117baf7/requirements.txt (line 1)) (from versions: )
No matching distribution found for Python==3.5.1 (from -r /tmp/build_eff222df1413c9c747fe9d073117baf7/requirements.txt (line 1))
! Push rejected, failed to compile Python app.
! Push failed
Как мне настроить needs.txt , чтобы это работало? Я использовалвиртуальная среда, где я установил это:
django,
djangorestframework,
django-rest-auth,
django-filter,
django-cors-headers,
Я использую Python 3.5 и Django 2.0.1