Deploy Django Project On Vercel - Free Hosting Provider

  Рет қаралды 6,374

CodeWithMuh

CodeWithMuh

Күн бұрын

🚀 In this tutorial, we will learn how to deploy a Django project on Vercel, a free hosting provider that supports various web technologies.
Watch this tutorial to get started! 💻
We will go through the step-by-step process of setting up a Vercel account, connecting it with a Django project using the Vercel CLI, and deploying the project on Vercel's servers. By the end of this video, you will have a fully functional Django application that can be accessed by anyone on the internet.
_ _ _ _ _ _ _ _ _ _ _ _ __ __ _ _ _ _
Resources:
🚀 Transform your career with my free newsletter: / 7142487325682446336
_ _ _ _ _ _ _ _ _ _ _ _ __ __ _ _ _ _
Social Links:
Github: github.com/codewithmuh
LinkedIn: / muhammad-rashid-daha
X: / rashiddaha80
Instagram: / rashiddaha1
Medium: / codewithmuh
Website: codewithmuh.com
_ _ _ _ _ _ _ _ _ _ _ _ __ __ _ _ _ _
Contact:
Email: codewithmuh@gmail.com
_ _ _ _ _ _ _ _ _ _ _ _ __ __ _ _ _ _
If you need consultation or would like to hire me.
Hire me on Upwork: www.upwork.com/freelancers/~0...
Place an order on Fiverr: www.fiverr.com/s/49lG51
_ _ _ _ _ _ _ _ _ _ _ _ __ __ _ _ _ _
#vercel
📔 Source Code: github.com/codewithmuh/backen...
The article used in this Video:
• / deploy-django-project-...
Table of Contents:
0:00:00 Introduction
0:01:31 Deployment

Пікірлер: 33
@CodeWithMuh
@CodeWithMuh 8 ай бұрын
Connect with me on LinkedIn: www.linkedin.com/in/muhammad-rashid-daha
@KartheekBalu
@KartheekBalu 2 ай бұрын
No module named 'django' ImportError: Couldn't import Django. Are you sure it's installed and available on your PYTHONPATH environment variable? Did you forget to activate a virtual environment? BUILD END Error: No Output Directory named "staticfiles_build" found after the Build completed. You can configure the Output Directory in your Project Settings. Help me out from this bro
@thekids525
@thekids525 Ай бұрын
I got the error like this
@user-lx2vi1lq1t
@user-lx2vi1lq1t Жыл бұрын
Hello please do I need to downgrade to python version 3.9 before I can deploy. I'm currently on python version 3.11.4 and I'm facing problem deploying my app. I'm facing the same problem as the latest comment
@sivaram4349
@sivaram4349 Жыл бұрын
Thanks Bro its Working
@CodeWithMuh
@CodeWithMuh Жыл бұрын
Glad to hear
@tiagof5623
@tiagof5623 9 ай бұрын
How do I send emails using Gmail SMTP through Vercel? Locally it is working. It doesn't work on Vercel.
@CodeWithMuh
@CodeWithMuh 9 ай бұрын
If your Gmail SMTP is working locally in your Django project but not when deployed to Vercel, there could be several reasons for this issue. Here are some common troubleshooting steps to consider: Environment Variables: Ensure that your Gmail SMTP credentials and settings are correctly configured as environment variables on Vercel. Double-check that the credentials are being read properly in your deployed application. Vercel Environment Configuration: Verify that your Vercel environment is set up correctly. Make sure that the environment variables are properly set in your Vercel project settings. Firewall or Network Restrictions: Check if Vercel might have network restrictions or firewall rules that prevent outgoing SMTP connections. Sometimes, hosting platforms have such limitations for security reasons. Error Logs: Check the error logs on Vercel to see if there are any specific error messages related to the SMTP connection. This can provide valuable information about what might be going wrong. App Permissions: Ensure that the Gmail account you are using for SMTP allows "Less secure apps" to access it. Gmail's security settings may block connections from certain sources. Use App Password: Instead of your Gmail account password, consider generating an "App Password" from your Google account settings specifically for your Django application. This can provide a more secure way to access your Gmail account. Third-party Access: Check if you've enabled "Allow less secure apps" and "Allow access to your Google account" for your Google account. You may need to adjust these settings for SMTP access. SMTP Port and Protocol: Verify that you are using the correct SMTP port and protocol (usually port 587 for TLS/STARTTLS and port 465 for SSL). Testing in Staging: You might want to test your SMTP configuration on a Vercel staging environment to isolate the issue without affecting your production environment. Library and Version Compatibility: Ensure that the Django and email library versions you are using are compatible with the Python version available on Vercel. Python version discrepancies can sometimes cause issues. DNS and Domain Settings: If you are sending emails from a custom domain, verify that your DNS settings (e.g., MX records) are correctly configured. SMTP Debugging: Enable SMTP debugging in your Django settings to get more detailed information on what might be failing during the SMTP connection. By systematically checking these factors, you should be able to identify the root cause of the issue with Gmail SMTP not working on Vercel and take the necessary steps to resolve it.
@kishorereddy9453
@kishorereddy9453 Жыл бұрын
Serverless function exceeds max size limit error while deploying in vercel. How to solve this issue??
@CodeWithMuh
@CodeWithMuh Жыл бұрын
Make sure to add .gitignore file. And make sure env file (packages) must not be uploaded to git. Which increased the data of repo. Follow my git and see structure
@kishorereddy9453
@kishorereddy9453 Жыл бұрын
@@CodeWithMuh Got it thankyou for your quick response
@darkksouul
@darkksouul Жыл бұрын
Error: No Output Directory named "staticfiles_build" found after the Build completed. You can configure the Output Directory in your Project Settings. how to solve this?
@CodeWithMuh
@CodeWithMuh Жыл бұрын
Try to run and collect static commands locally Then try to push code. Hopefully it will work
@darkksouul
@darkksouul Жыл бұрын
@@CodeWithMuh i have done this and the web app is deployed but now this error is coming 404: NOT_FOUND Code: NOT_FOUND
@CodeWithMuh
@CodeWithMuh Жыл бұрын
This can be a vercel side issue.
@Ab-gf8pz
@Ab-gf8pz Жыл бұрын
@@darkksouul Bro I am also facing this issue. How did you resolved this issue?
@ramonnemeno6823
@ramonnemeno6823 Жыл бұрын
@@darkksouul have you already fix your issue because im stuck with that issue.
@niharikasinghal8784
@niharikasinghal8784 Жыл бұрын
After deploying i am getting this error- 500:INTERNAL_SERVER_ERROR. Please help me resolve this :(
@CodeWithMuh
@CodeWithMuh Жыл бұрын
There will be a configuration issue. Please send a message to discord or send me an email for help. Thanks
@SherryTYR
@SherryTYR 4 ай бұрын
did you find the solution?
@halilibrahimsoyman5797
@halilibrahimsoyman5797 4 ай бұрын
ıt didnt work. ı got 404 error 2 times
@CodeWithMuh
@CodeWithMuh 4 ай бұрын
Make sure your code is working properly. Ask me at LinkedIn for help
@abdullahgour4364
@abdullahgour4364 Жыл бұрын
sir how will we add database?
@CodeWithMuh
@CodeWithMuh Жыл бұрын
As mentioned, external database.
@CodeWithMuh
@CodeWithMuh Жыл бұрын
As mentioned you need to use external database ok so if you want to deep dive you can take my backend developer course where I have mentioned how you can use external database
@CodeWithMuh
@CodeWithMuh Жыл бұрын
This video kzfaq.info/get/bejne/hZmarLRk3LDJn5c.html is coming tomorrow.where you can learn how to use external database
@vijaykumarakunoori8144
@vijaykumarakunoori8144 Жыл бұрын
Hi , Thanks for sharing great content with us. I went through your video, While deploying in vercel getting this issue , Can you please help me over here, I'm stuck ISSUE : Failed to run "pip3.9 install --disable-pip-version-check --target . --upgrade -r /vercel/path0/requirements.txt" Error: Command failed: pip3.9 install --disable-pip-version-check --target . --upgrade -r /vercel/path0/requirements.txt error: subprocess-exited-with-error
@CodeWithMuh
@CodeWithMuh Жыл бұрын
Check Python version: Verify that Python 3.9 is installed by running python3.9 --version in the terminal. Install pip: If pip is not installed, use python3.9 -m ensurepip to install it. Update pip: If pip is already installed, update it with pip3.9 install --upgrade pip. Verify requirements.txt: Ensure the file exists in "/vercel/path0/requirements.txt" and contains valid package names and versions. Resolve dependencies: Modify versions or remove problematic packages from requirements.txt. Check network: Ensure stable internet connectivity to download packages. Use a virtual environment: Create a new virtual environment with python3.9 -m venv myenv, activate it, and run the command within it These steps should help resolve the "Failed to run" error related to the pip installation.
@status_dev
@status_dev Жыл бұрын
not worked depoy vercell in your project i try it
@CodeWithMuh
@CodeWithMuh Жыл бұрын
It should work
@user-lx2vi1lq1t
@user-lx2vi1lq1t Жыл бұрын
Hello please do I need to downgrade to python version 3.9 before I can deploy. I'm currently on python version 3.11.4 and I'm facing problem deploying my app. I'm facing the same problem as the latest comment
@CodeWithMuh
@CodeWithMuh Жыл бұрын
It should not be an issue.
Free 2020 Django Website Hosting in 5 Minutes - Heroku
9:28
StudyGyaan
Рет қаралды 78 М.
Inside Out Babies (Inside Out Animation)
00:21
FASH
Рет қаралды 17 МЛН
ЧУТЬ НЕ УТОНУЛ #shorts
00:27
Паша Осадчий
Рет қаралды 10 МЛН
Push & Subscribe Data from AWS IoT Core by awsmasterchef
6:57
How to deploy your Django Project to Vercel 100% Free
17:45
Halogenius Ideas
Рет қаралды 2,5 М.
Deploy Django Project on Heroku Step by Step (Hindi)
33:37
Geeky Shows
Рет қаралды 37 М.
Deploy Django Project on Digital Ocean
26:27
CodeWithMuh
Рет қаралды 8 М.
Inside Out Babies (Inside Out Animation)
00:21
FASH
Рет қаралды 17 МЛН