No module named 'django'

14 views
Skip to first unread message

Somansh Bhayani

unread,
Jan 13, 2025, 3:28:31 PMJan 13
to modwsgi
image.png
I was deploying my small Django project on Vercel when I encountered an error related to WSGI, so I’m asking for help here. I have checked everything—from the Django version globally as well as within the project scope—and ensured that the Python version is greater than 3.10. I have also added vercel.json and requirements.txt (which includes the Django version). Attached is the error screenshot.

Graham Dumpleton

unread,
Jan 13, 2025, 3:33:47 PMJan 13
to mod...@googlegroups.com
How does your WSGI application get deployed within Vercel using mod_wsgi? I thought Vercel was more a solution for static hosting or apps which work with Node and Javascript, not Python WSGI applications.

The key thing is that if you are indeed using mod_wsgi, it is not likely configured correctly and not using correct Python virtual environment or something where Django is installed. I can't easily guess though as I need to know how Apache/mod_wsgi runs on Vercel and how you have configured it. So more information on that will help.

Graham

On 14 Jan 2025, at 6:17 am, Somansh Bhayani <bhayani...@gmail.com> wrote:

<image.png>
I was deploying my small Django project on Vercel when I encountered an error related to WSGI, so I’m asking for help here. I have checked everything—from the Django version globally as well as within the project scope—and ensured that the Python version is greater than 3.10. I have also added vercel.json and requirements.txt (which includes the Django version). Attached is the error screenshot.

--
You received this message because you are subscribed to the Google Groups "modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to modwsgi+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/modwsgi/c9709514-b885-4d75-9a83-e3ec2040b706n%40googlegroups.com.
<image.png>

Reply all
Reply to author
Forward
0 new messages