[Python] 404: NOT_FOUND error on Vercel - Django deployment

Discussão em 'Python' iniciado por Stack, Novembro 21, 2024.

  1. Stack

    Stack Membro Participativo

    I deployed a Django project on Vercel and it shows the deployment is successful. However, when I try to open the website, it shows the error:

    404: NOT_FOUND
    Code: NOT_FOUND
    ID: lhr1:lhr1::6n29s-1732227821846-0cc9eddbb440


    My Django project can be found in the following link: https://github.com/RailgunGLM/railgunglm-com

    I tried solving the problem by, as some solutions on stackoverflow suggested, inserting a vercel.json file and a build.sh file, adding the line app = application at the very end of wsgi.py, including .vercel.app in my ALLOWED_HOSTS in setting.py, and lastly, installed whitenoise. However, none of them seems to work. The application works normally in my local machine, but I'm not sure whether I made a mistake in one of these files. I would be really appreciated if there is a solution to fix this problem.

    Continue reading...

Compartilhe esta Página