Развертывание приложения Django на Vercel, сбой бессерверной функцииPython

Программы на Python
Ответить Пред. темаСлед. тема
Anonymous
 Развертывание приложения Django на Vercel, сбой бессерверной функции

Сообщение Anonymous »


Hi guys i am trying to deploy my django app to vercel, but i have a problem when i try to deploy the backend i get an error, even though when i tried it on the local server there was no error at all

can you help me to fix this ?

Here is the error

This Serverless Function has crashed. Your connection is working correctly. Vercel is working correctly. 500: INTERNAL_SERVER_ERROR Code: FUNCTION_INVOCATION_FAILED ID: fra1::8b4lf-1709362569275-006c244d7831 If you are a visitor, contact the website owner or try again later. If you are the owner, learn how to fix the error and check the logs.

the vercel.json file

{ "builds": [{ "src": "my_tennis_club_project/wsgi.py", "use": "@vercel/python", "config": { "maxLambdaSize": "15mb", "runtime": "python3.9" } }], "routes": [ { "src": "/(.*)", "dest": "my_tennis_club_project/wsgi.py" } ] } the requirments.txt file

asgiref==3.7.2 Django==4.0 sqlparse==0.4.4 typing_extensions==4.10.0 tzdata==2024.1 how to fix the issue


Источник: https://stackoverflow.com/questions/780 ... as-crashed
Реклама
Ответить Пред. темаСлед. тема

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

  • Похожие темы
    Ответы
    Просмотры
    Последнее сообщение

Вернуться в «Python»