How to Deploy a Fullstack Django Web App on Vercel.

  Рет қаралды 24,060

Code With Clinton

Code With Clinton

Жыл бұрын

In this tutorial, I will guide you through the process of deploying a Django web application on Vercel, a popular cloud platform for web development. You will learn how to configure your Django app to work with Vercel's serverless architecture, set up your Vercel account, and deploy your app to the platform. Whether you're a beginner or an experienced developer, this video will provide you with step-by-step instructions to get your Django web app up and running on Vercel in no time.
Push your Django project on GitHub:
• How to Push your Djang...
Live PostgreSQL Database with railway.app
• Fastest Method to Conn...
Let's connect:-
/ clinton-nwachukwu
/ codewithclinton

Пікірлер: 221
@CodeWithClinton
@CodeWithClinton Жыл бұрын
Add the lines of code below into your vercel.json file. { "version": 2, "builds": [ { "src": "projectname/wsgi.py", "use": "@vercel/python", "config": { "maxLambdaSize": "15mb", "runtime": "python3.9" } }, { "src": "build_files.sh", "use": "@vercel/static-build", "config": { "distDir": "staticfiles_build" } } ], "routes": [ { "src": "/static/(.*)", "dest": "/static/$1" }, { "src": "/(.*)", "dest": "projectname/wsgi.py" } ] }
@CodeWithClinton
@CodeWithClinton Жыл бұрын
@AMIRUL BIN ABD LATIB watch the video and follow the exact steps I took.
@legendsanimexy8217
@legendsanimexy8217 11 ай бұрын
​@@CodeWithClintonI want to host my e-commerce website which i have made in django . But I am facing problems
@CodeWithClinton
@CodeWithClinton 11 ай бұрын
@@legendsanimexy8217 what issue are you facing.
@legendsanimexy8217
@legendsanimexy8217 11 ай бұрын
Everything is working fine but after i deploy the project it's giving me a error . Like 404 not found . When i click that it's showing 402: DEPLOYMENT DISABLED . please reply
@CodeWithClinton
@CodeWithClinton 11 ай бұрын
@@legendsanimexy8217 I can't recommend a solution from here.
@daveanvs
@daveanvs 10 ай бұрын
thanks Clinton, its the only tutorial i have found so far that actually worked for me
@CodeWithClinton
@CodeWithClinton 10 ай бұрын
You're welcome, I am glad it helped.
@alejandra-garcias
@alejandra-garcias 8 ай бұрын
your work is amazing, I have successfully deployed my django aplication
@CodeWithClinton
@CodeWithClinton 8 ай бұрын
I am glad my video helped.
@arcadianthenics7535
@arcadianthenics7535 11 ай бұрын
a very greate and accurate content thank you brother i was trying to my app from last few weeks but geettng an error just and seach searched everywhere but no one is teaching about that dabase content the way you did..... thanks once again...
@CodeWithClinton
@CodeWithClinton 11 ай бұрын
Glad to help.
@allanbakwanamaha2998
@allanbakwanamaha2998 Жыл бұрын
Thank you for sharing this resourceful content. Great love from Uganda
@CodeWithClinton
@CodeWithClinton Жыл бұрын
You're welcome, thank you.
@anna_lorencova
@anna_lorencova 8 ай бұрын
THANK YOU! :) amazing job and ty for amazing up to date tutorial
@CodeWithClinton
@CodeWithClinton 8 ай бұрын
It is my pleasure, thank you.
@xx482
@xx482 10 ай бұрын
Thanks a lot for this video It is straight forward, not complicated as heroku
@CodeWithClinton
@CodeWithClinton 10 ай бұрын
I am glad it helped you.
@christiannwachukwu8709
@christiannwachukwu8709 11 ай бұрын
Mine wasn't deploying, I think it was due to my project structure. But it's working now, thanks a lot. I really like your videos.
@CodeWithClinton
@CodeWithClinton 11 ай бұрын
Glad to hear that
@oselumeseagbonrofo5327
@oselumeseagbonrofo5327 6 ай бұрын
Great video. Thanks bro
@CodeWithClinton
@CodeWithClinton 6 ай бұрын
You're welcome.
@xband0
@xband0 Жыл бұрын
Thanks for the update
@CodeWithClinton
@CodeWithClinton Жыл бұрын
You're welcome.
@attahchristian6699
@attahchristian6699 5 ай бұрын
You are doing well brother, no unnecessary terminologies, no unnecessary explanation, just straight to the point with each steps clear and easy to follow.
@CodeWithClinton
@CodeWithClinton 5 ай бұрын
Thank you so much brother
@matiasvallejosdev
@matiasvallejosdev 5 ай бұрын
Thanks for it!
@CodeWithClinton
@CodeWithClinton 5 ай бұрын
You are welcome.
@user-qw8ji9wl6u
@user-qw8ji9wl6u 6 ай бұрын
Thank you a lot!
@CodeWithClinton
@CodeWithClinton 6 ай бұрын
You're welcome.
@ronunkwor
@ronunkwor 16 күн бұрын
Thank you so much
@CodeWithClinton
@CodeWithClinton 16 күн бұрын
@@ronunkwor you are welcome.
@murtazamadadi8657
@murtazamadadi8657 Жыл бұрын
it was helpful thanks
@CodeWithClinton
@CodeWithClinton Жыл бұрын
You are welcome.
@CodeForChange
@CodeForChange 4 ай бұрын
great content thank you
@CodeWithClinton
@CodeWithClinton 4 ай бұрын
You're welcome.
@danquahwilliam316
@danquahwilliam316 5 ай бұрын
Thank you so much sir
@CodeWithClinton
@CodeWithClinton 5 ай бұрын
You're welcome.
@nelisiwemasango8890
@nelisiwemasango8890 4 ай бұрын
thank you so much
@CodeWithClinton
@CodeWithClinton 4 ай бұрын
You're welcome.
@MdAkram-vs5jj
@MdAkram-vs5jj 5 ай бұрын
Thanks dude helped me a lot👍
@CodeWithClinton
@CodeWithClinton 5 ай бұрын
You're welcome.
@MdAkram-vs5jj
@MdAkram-vs5jj 5 ай бұрын
@@CodeWithClinton Also I get this error while uploading the images that it is a read only file and doesn't upload any image.. is there any video regarding that or you have any info about it
@MdAkram-vs5jj
@MdAkram-vs5jj 4 ай бұрын
OSError: [Errno 30] Read-only file system: '/var/task/media' this is the error and when i search for it, it is related to storage issues for media and mentions me to use AWS lambda for media files so can you make a video regarding that
@afraheemraz3753
@afraheemraz3753 5 ай бұрын
Thank you for this ..
@CodeWithClinton
@CodeWithClinton 5 ай бұрын
You're welcome.
@afraheemraz3753
@afraheemraz3753 5 ай бұрын
can you please suggest us some free django hosting provider, @@CodeWithClinton
@user-xz2hg3rq6o
@user-xz2hg3rq6o Жыл бұрын
спасибо тебе большое товарищ!!!🔥🔥🔥
@CodeWithClinton
@CodeWithClinton Жыл бұрын
Thank you.
@douglasemmanuel7175
@douglasemmanuel7175 4 ай бұрын
Great work Clinton , actually am getting 500 error serverless function crash
@CodeWithClinton
@CodeWithClinton 4 ай бұрын
I am so sorry, I will look into it.
@luuvinhtuong
@luuvinhtuong 8 ай бұрын
thanks bro
@CodeWithClinton
@CodeWithClinton 8 ай бұрын
You're welcome.
@H3ndr1x220
@H3ndr1x220 Жыл бұрын
Very useful content, will you please make a video on how to host fullstack web app made with reactjs and django on vercel or its alternatives
@CodeWithClinton
@CodeWithClinton Жыл бұрын
I will do that. Thank you.
@mateusz99i1
@mateusz99i1 Жыл бұрын
Thank you, you just saved my ass
@CodeWithClinton
@CodeWithClinton Жыл бұрын
You're welcome.
@bigonhim14
@bigonhim14 5 ай бұрын
@CodeWithClinton Great finally deployed😁
@CodeWithClinton
@CodeWithClinton 5 ай бұрын
Glad to help.
@user-pz9rw7vx3j
@user-pz9rw7vx3j 5 күн бұрын
Thanks for This, How do we store staticfiles in vercel blob
@CodeWithClinton
@CodeWithClinton Күн бұрын
The tutorial covered that.
@irfanasulaiman6508
@irfanasulaiman6508 Жыл бұрын
Thank you for the great content.. is there any configuration needed for media files in your project while deploying in vercel?
@CodeWithClinton
@CodeWithClinton Жыл бұрын
You're welcome, it should be the regular media configurations that comes with django.
@irfanasulaiman6508
@irfanasulaiman6508 Жыл бұрын
@CodeWithClinton what if users have to upload files in ur app? Where will be these files be stored
@CodeWithClinton
@CodeWithClinton Жыл бұрын
@@irfanasulaiman6508 it will be stored in your database, if you want the media files to be stored on a separate server, you can try aws s3-bucket or cloudinary.
@irfanasulaiman6508
@irfanasulaiman6508 Жыл бұрын
[Errno 30] Read-only file system: '/var/task/media/car_PR9KOgo.jpg' I get this error when i upload files from my application deployed in vercel my static and media conf is : STATIC_URL = '/static/' STATICFILES_DIRS = os.path.join(BASE_DIR, 'static'), STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles_build', 'static') # Base url to serve media files MEDIA_URL = 'img/' MEDIA_ROOT = os.path.join(BASE_DIR, 'media') cant figure out the mistake
@lll-gr7dk
@lll-gr7dk 3 ай бұрын
What do I do when vercel error: ./build_files.sh: line 2: pip: command not found
@CodeWithClinton
@CodeWithClinton 2 ай бұрын
The issue is from vercel, I have tried contacting them.
@hassanghani8039
@hassanghani8039 3 ай бұрын
is it possible that we can deploy our full fledge django Ecom site with postgresql database in the same process which you are telling us in this video
@CodeWithClinton
@CodeWithClinton 3 ай бұрын
Yes, you can.
@heismyke
@heismyke 4 ай бұрын
Error: Command "./build_files.sh" exited with 1
@CodeWithClinton
@CodeWithClinton 4 ай бұрын
Your build.sh file isn't configured properly.
@salmanmammadli
@salmanmammadli 7 ай бұрын
I did all the stuff that you said step by step . In the final stage when i click deploy it takes too long (for example over 40 minutes) and i get error in the end. When i try to look at the errors i get it's not shown in the error list .So i don't know what's reason to get the error. I think error is cause to due to changing database from sqlite to postgres . When i tried making migrations it took more time than when i use sqllite. Then I tried using sqlite instead of postgres this time i get "Build Failed : A Serverless Function has exceeded the unzipped maximum size of 250 MB" error.
@CodeWithClinton
@CodeWithClinton 7 ай бұрын
Stick to PostgreSQL database and follow the tutorial carefully.
@josephs8912
@josephs8912 Күн бұрын
I will like to know if this video can also help configure satic files like html, css, js and images to reflect in the deployment on vercel.. kindly help... i have been searching youtube like all day and i would like to know. Thank You, i await your response.
@CodeWithClinton
@CodeWithClinton Күн бұрын
@@josephs8912 this is the video you are looking for.
@abhijithsubash6160
@abhijithsubash6160 7 ай бұрын
Hey Clinton, I couldn't upload images. It shows: OSError: [Errno 30] Read-only file system: '/var/task/media'
@CodeWithClinton
@CodeWithClinton 7 ай бұрын
I will work on a tutorial video.
@justice1915
@justice1915 10 ай бұрын
Nice work sir. When I try to make a post request it doesn’t insert to the database on railway. But if I do that on local host it works. Please help
@CodeWithClinton
@CodeWithClinton 10 ай бұрын
Really? try deploying on another platform. Check my Render tutorial. It is the video before the last.
@julienheng3880
@julienheng3880 8 ай бұрын
I have an application with React as front-end and Django as backend. Is it possible to deploy the application to Vercel?
@CodeWithClinton
@CodeWithClinton 8 ай бұрын
Yes it is.
@mahvishsadaf3499
@mahvishsadaf3499 3 ай бұрын
if i dont have static files what to do ? can i skip the static files section completely ? or are there any more changes
@CodeWithClinton
@CodeWithClinton 3 ай бұрын
You can skip it.
@arvincalleja1738
@arvincalleja1738 5 ай бұрын
Hi Clinton, this video is the tutorial I have found is actually fit for what am I doing. But after a day and deploying it, my project in vercel gives me a 404 error, but when I run it locally it still works. I check the railway and under the data tab it say "We are unable to connect to the database over the public network." Is it possible because of this? and what possible solution for this? Thanks!
@CodeWithClinton
@CodeWithClinton 5 ай бұрын
Please cross-check your database credentials.
@arvincalleja1738
@arvincalleja1738 5 ай бұрын
​@@CodeWithClinton I already connect the database. But Vercel has a new error message. "This Serverless Function has crashed. Your connection is working correctly. Vercel is working correctly. 500: INTERNAL_SERVER_ERROR Code: FUNCTION_INVOCATION_FAILED"
@anthonychianain2241
@anthonychianain2241 7 ай бұрын
Hey! Thanks so much for your help out there!! It seems I saw one of your different video too, "deploying Django to Digital ocean'.. Hm am thinking you are from Nigeria, if true please, am from Bamenda-Cameroon,, do you have an idea which financial institutions operate in Nigeria or even Cameroon their Cards are less likely to be declined by Digital ocean?.... I have been facing hard times to complete my account creation in digital ocean because my card keep being declined..( using a debit card optained from UBA) Please if you can help a bro, please do🙏.. just a little information about which banks in Africa are not being declined
@CodeWithClinton
@CodeWithClinton 7 ай бұрын
Sorry for the late response, I used a friend's dollar card to signup on Digitalocean, try using ChipperCash.
@anthonychianain2241
@anthonychianain2241 7 ай бұрын
@@CodeWithClinton ok Brother Clinton! Thanks! though I don't even have an idea weather the CheperCash is available in my country... I will just try to find out
@Sivu2
@Sivu2 11 ай бұрын
Hi i deployed my django project with psql as database but i get This Serverless Function has crashed error please help
@CodeWithClinton
@CodeWithClinton 11 ай бұрын
I guess there something you missed in the tutorial.
@aaronicks7797
@aaronicks7797 6 ай бұрын
Hi Clinton I have tried loading it but its not loading my style sheet
@CodeWithClinton
@CodeWithClinton 6 ай бұрын
I will make a new video on this, try another hosting platform.
@versatg5722
@versatg5722 Жыл бұрын
Please How do you upload media files. Like images. Cuz vercel is serverless
@CodeWithClinton
@CodeWithClinton Жыл бұрын
You can host the Media files on a separate server like aws s3-bucket.
@versatg5722
@versatg5722 Жыл бұрын
Then how do you connect it.
@versatg5722
@versatg5722 Жыл бұрын
​@@CodeWithClintonhow do connect the s3 to vercel after deploying the Django app
@isaacnsbkargbo1379
@isaacnsbkargbo1379 9 ай бұрын
Hello sir, thanks so much for this wonderful tutorial, i followed the tutorial well but my staticfiles are not working on production
@CodeWithClinton
@CodeWithClinton 9 ай бұрын
Vercel changed the process.
@almaspernshev7370
@almaspernshev7370 9 ай бұрын
@@CodeWithClinton any updates on how to configure static files?:D
@CodeWithClinton
@CodeWithClinton 9 ай бұрын
@@almaspernshev7370 a new video will be made for that.
@almaspernshev7370
@almaspernshev7370 9 ай бұрын
@@CodeWithClinton I have already figured out, but thank you so much it was so helpful👌
@reniboyanova9388
@reniboyanova9388 8 ай бұрын
@@almaspernshev7370 could you please tell me how you figured out?
@iviidev
@iviidev Ай бұрын
Is this process same for mysql database too?
@CodeWithClinton
@CodeWithClinton Ай бұрын
Yes, but PostgreSQL is more ideal.
@kundanrajput3495
@kundanrajput3495 Жыл бұрын
i am facing error can you help me , i ave watched your video more then 5 times and written everything exactly same but still deployment not working and it also sont show any error it just show red cross in building part
@CodeWithClinton
@CodeWithClinton Жыл бұрын
Read carefully you will find the error message.
@kundanrajput3495
@kundanrajput3495 Жыл бұрын
@@CodeWithClinton sir there is no error message
@cdexzswzaqME
@cdexzswzaqME 10 ай бұрын
my website is loading but static files are not comming only html content is commint
@CodeWithClinton
@CodeWithClinton 10 ай бұрын
Yeah, Vercel made some updates to the deployment process.
@suyog_codin
@suyog_codin 4 ай бұрын
Thankyou my project got hosted but when i try to update any thing from admin panel i get error 30 How to fix Error 30 Read-only file system
@CodeWithClinton
@CodeWithClinton 4 ай бұрын
I will check it out.
@frostcodes5306
@frostcodes5306 3 ай бұрын
Getting ./build_files.sh: line 1: pip: command not found Traceback (most recent call last): File "/vercel/path0/manage.py", line 11, in main ...What could be the issue?
@CodeWithClinton
@CodeWithClinton 3 ай бұрын
Let me check out vercel.
@enzofuentes939
@enzofuentes939 3 ай бұрын
Could you fix it? I run into same issue.
@pingaksha
@pingaksha 3 ай бұрын
@@CodeWithClinton facing same error
@mtw7025
@mtw7025 2 ай бұрын
@@pingaksha found a way to fix it?
@yourboyman7410
@yourboyman7410 5 ай бұрын
i made my project in 3.11 so it isnt working. what do i do?
@CodeWithClinton
@CodeWithClinton 5 ай бұрын
While deploying stick with your current python version.
@niteshraya
@niteshraya Жыл бұрын
Hey thank you for the tutorial but i am having weird issue where my hosted site doesn't run static files! I have tried white noise and all the stuffs :-( . Only the html runs can you please help me with this one!
@CodeWithClinton
@CodeWithClinton Жыл бұрын
Make sure to include STATIC_ROOT in your settings.py file.
@niteshraya
@niteshraya Жыл бұрын
@@CodeWithClinton can you make a tutorial on that please?
@CodeWithClinton
@CodeWithClinton Жыл бұрын
@@niteshraya add this to your settings file. STATIC_ROOT = BASE_DIR/"assets"
@niteshraya
@niteshraya Жыл бұрын
@@CodeWithClinton Do you have discord or something to connect. Please help me
@CodeWithClinton
@CodeWithClinton Жыл бұрын
@@niteshraya you can try LinkedIn or Twitter, check about section of my channel.
@amlan7502
@amlan7502 7 ай бұрын
🎯 Key Takeaways for quick navigation: 00:00 🛠️ *Setting up Build Files for Deployment* - Creation of a script (build_files.sh) for deployment setup. - Configuration steps including `pip install`, `python3.9 manage.py collectstatic`, and content for `vercel.json`. - Ensuring project-specific adjustments in the script, such as the project name and folder containing settings. 03:10 🗃️ *Configuring Static Files and WSGI* - Configuration of static files in `settings.py`. - Adjusting `wsgi.py` to include the necessary variable assignment. - Instructions for incorporating the static folder's name into the settings. 05:13 🛢️ *Configuring Postgres Database* - Migration from SQLite3 to Postgres in `settings.py`. - Explanation and guidance on setting up a live Postgres database using tutorials. - Running migrations (`python manage.py makemigrations` and `python manage.py migrate`) after database changes. 07:50 🚀 *Finalizing Configuration and Deployment* - Final steps like configuring `ALLOWED_HOSTS` and adding local links. - Creating a `requirements.txt` file for dependencies. - Resolving the `psyco pg2` dependency issue for Vercel deployment. 13:57 🌐 *Pushing Code to GitHub and Vercel Deployment* - Guidance on pushing code to GitHub and ensuring commits. - Importing and deploying the application on Vercel from GitHub. - Debugging deployment errors related to specific package dependencies. 20:14 🛠️ *Resolving Deployment Errors and Redeploying* - Addressing deployment issues by updating dependencies (`psyco pg2` to `psyco pg2 binary`) and pushing changes to GitHub. - Re-deploying the application on Vercel, checking build logs, and verifying successful deployment. 22:06 🌐 *Exploring Deployed Domains on Vercel* - Introduction to different domains for the deployed application on Vercel. - Clarification on the empty state of the current application due to a switch in databases. - Guidance on accessing the Django admin to add content and create a superuser. 23:27 🚀 *Deployment and Final Comments* - Encouragement to create content via the Django admin for the deployed application. - Expressing the simplicity of deploying the application on Vercel and assuring viewers of shared configurations in the comments section. - Recapitulation of the deployment steps involving script creation, database switch to Postgres, and configurations in specific files. Made with HARPA AI
@CodeWithClinton
@CodeWithClinton 7 ай бұрын
Thank you so much.
@hustlersadda1
@hustlersadda1 Ай бұрын
Sir getting error or pip command not found,python3 not found... Build_files.sh existed with 127
@CodeWithClinton
@CodeWithClinton Ай бұрын
Sorry, it has to do with vercel.
@mihirpande8786
@mihirpande8786 21 күн бұрын
same, did you found a way to get around it?
@sudiptasarker2480
@sudiptasarker2480 Жыл бұрын
Very good content. well done bro. I have got an issue after deployment. When I try to upload any image or file from admin panal. It causes "[Errno 30] Read-only file system: '/var/task/media'" error. Is there any fix for this issue?
@CodeWithClinton
@CodeWithClinton Жыл бұрын
Thank you, try configuring an external server for your media files like aws s3-bucket.
@sudiptasarker2480
@sudiptasarker2480 Жыл бұрын
@@CodeWithClinton thanks for your suggestion
@versatg5722
@versatg5722 Жыл бұрын
​@@sudiptasarker2480how do do the external configuration
@versatg5722
@versatg5722 Жыл бұрын
​@@CodeWithClintonhow do you do the external configuration please
@nikantkamat8992
@nikantkamat8992 Жыл бұрын
i need to deploy django as an api!
@CodeWithClinton
@CodeWithClinton Жыл бұрын
It is the same process.
@jayarammishalu3168
@jayarammishalu3168 7 ай бұрын
I have a doubt how to deploy django and reactis in vercel
@CodeWithClinton
@CodeWithClinton 7 ай бұрын
It is easy you have to deploy them separately.
@BensonIbe
@BensonIbe 2 ай бұрын
when deploying on Vercel, i keep getting this error, how do i solve this ModuleNotFoundError: No module named 'django' NB: I have django installed already, in my requirements.txt file, i have Django==4.2.6 in my build_files.sh i have pip3 install -r requirements.txt python3.9 manage.py collectstatic and in my runtime .txt i have Python-3.9
@CodeWithClinton
@CodeWithClinton 2 ай бұрын
I think Vercel is currently having issues deploying Django.
@BensonIbe
@BensonIbe 2 ай бұрын
@@CodeWithClinton okay. Thank you so much
@patriciagiramia7238
@patriciagiramia7238 Жыл бұрын
does vercel only use python 3.9 and not any other versions? because i tried deploying and it kept looking for python 3.9 path on my mac. then throws errors. kindly advise
@CodeWithClinton
@CodeWithClinton 11 ай бұрын
Try using the python version you have on your computer.
@patriciagiramia7238
@patriciagiramia7238 11 ай бұрын
thats just it. i have 3.10 installed but eachtime, vercel looks out for 3.9 while installing requirements and thats where everything ends in an error. can the python version be overidden or i have to install 3.9?@@CodeWithClinton
@patriciagiramia7238
@patriciagiramia7238 11 ай бұрын
Failed to run "pip3.9 install --disable-pip-version-check --target . --upgrade -r /vercel/path0/requirements.txt" the error
@JansenCCruz
@JansenCCruz 7 ай бұрын
@@patriciagiramia7238 have you fixed it?
@ahmedrafi7463
@ahmedrafi7463 4 ай бұрын
Full stack features such as login or signup which uses database is not working after deployment to vercel using this method, please help
@CodeWithClinton
@CodeWithClinton 4 ай бұрын
I will check it out.
@ahmedrafi7463
@ahmedrafi7463 4 ай бұрын
@@CodeWithClinton Thanks I will be waiting.
@ahmedrafi7463
@ahmedrafi7463 4 ай бұрын
@@CodeWithClinton did you find any solution brother?
@yaroslav1481
@yaroslav1481 4 ай бұрын
Hi, i have got an error: ./build_files.sh: line 1: pip: command not found Could someone help me
@CodeWithClinton
@CodeWithClinton 4 ай бұрын
I have been having same error message too, I think the problem is from vercel.
@JaydeepTalaviya-cl4xr
@JaydeepTalaviya-cl4xr 4 ай бұрын
@@CodeWithClinton i am also getting the same error
@frostcodes5306
@frostcodes5306 3 ай бұрын
@@JaydeepTalaviya-cl4xr Also having same problem, anybody with a solution?
@riswanbashas6256
@riswanbashas6256 6 ай бұрын
My error: 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? Error: Command "./build_files.sh" exited with 1 My build_files.sh: #!/bin/bash # Install dependencies from requirements.txt pip install -r requirements.txt # Run collectstatic command python manage.py collectstatic I have properly activated my Virtual machine. still it is getting error. Any leads will be appreciated
@CodeWithClinton
@CodeWithClinton 6 ай бұрын
Make sure you have django installed in your virtual environment. Run "pip freeze" to confirm.
@princewilljackson8412
@princewilljackson8412 Жыл бұрын
Followed your steps, but don't know why i'm getting this error.... "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?"....and my virtual env is activated
@CodeWithClinton
@CodeWithClinton Жыл бұрын
Create a virtual environment, activate the virtual environment and make sure Django is installed in your virtual environment.
@vaibhavpatil4248
@vaibhavpatil4248 Жыл бұрын
I am getting the same error, please help if you have found out any solution
@akakonin6924
@akakonin6924 Жыл бұрын
Good Job. Please, I have created a web App using Django and react but find it difficult to deploy it. Can you help? Thanks
@CodeWithClinton
@CodeWithClinton Жыл бұрын
You have to deploy them separately.
@akakonin6924
@akakonin6924 Жыл бұрын
Ok. It means I have to separate them. Otherwise I developed them together. Thanks@@CodeWithClinton
@CodeWithClinton
@CodeWithClinton Жыл бұрын
@@akakonin6924 it needs to be two separate apps, deployed separately.
@akakonin6924
@akakonin6924 Жыл бұрын
@@CodeWithClinton Thanks, I will separate them from the local development and then see how it will be.
@akakonin6924
@akakonin6924 Жыл бұрын
Please, can you help me deploy my App? Good evening Boss...
@Lordwisetech
@Lordwisetech 3 ай бұрын
Bro im facing an error,404 not found after deployment please help me
@CodeWithClinton
@CodeWithClinton 3 ай бұрын
It is a slight issue, you are trying to access a url path that doesn't exist.
@IamNotCoder
@IamNotCoder 19 күн бұрын
Everything is working for me but my media files are not displaying. What can be the reason ?
@CodeWithClinton
@CodeWithClinton 18 күн бұрын
Check your settings.py file and make sure MEDIA_URL, and MEDIA_ROOT are properly configured.
@CodeWithClinton
@CodeWithClinton 18 күн бұрын
make sure your MEDIA_URL and MEDIA_ROOT are properly configured.
@Abdusshh
@Abdusshh Ай бұрын
vercel cant run pip what do you think the reason might be ./build_files.sh: line 1: pip: command not found Traceback (most recent call last): File "/vercel/path0/manage.py", line 11, in main from django.core.management import execute_from_command_line ModuleNotFoundError: No module named 'django' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/vercel/path0/manage.py", line 22, in main() File "/vercel/path0/manage.py", line 13, in main raise ImportError( 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? Error: Command "./build_files.sh" exited with 1
@CodeWithClinton
@CodeWithClinton Ай бұрын
Vercel are currently having issues deploying python apps.
@Abdusshh
@Abdusshh Ай бұрын
@@CodeWithClinton oh no when do you think it will be fixed
@user-qf1ey3qz6c
@user-qf1ey3qz6c 3 ай бұрын
please help WARN! Due to `builds` existing in your configuration file, the Build and Development Settings defined in your Project Settings will not apply.
@H3A3K_
@H3A3K_ 3 ай бұрын
Hey did you solve it? should i help?
@user-qf1ey3qz6c
@user-qf1ey3qz6c 3 ай бұрын
@@H3A3K_ yesss please help me
@CodeWithClinton
@CodeWithClinton 3 ай бұрын
It think vercel is having some issues.
@user-qf1ey3qz6c
@user-qf1ey3qz6c 3 ай бұрын
@@CodeWithClinton I've tried changing everything. the lambda size the python version and more...do you have any idea what I should do
@CodeWithClinton
@CodeWithClinton 3 ай бұрын
@@user-qf1ey3qz6c the issue is from vercel, I have been trying to contact but no response yet.
@akakonin6924
@akakonin6924 Жыл бұрын
Clinton, please I still need your assistance
@CodeWithClinton
@CodeWithClinton Жыл бұрын
How can I help?
@akakonin6924
@akakonin6924 Жыл бұрын
@@CodeWithClinton I am still not able to deploy my fullstack App. I would like to communicate with you privately so you can see my code... Thanks
@saidorifxojayoldoshxojayev1100
@saidorifxojayoldoshxojayev1100 4 ай бұрын
is vercel free to deploy?
@CodeWithClinton
@CodeWithClinton 4 ай бұрын
Yes it is.
@tomilola_ng
@tomilola_ng Жыл бұрын
I don't like my apps depending on railway they give a limited time monthly
@CodeWithClinton
@CodeWithClinton Жыл бұрын
Yeah, they give 500 hours monthly. Or you can deploy on PythonAnywhere it uses the sqlite3 database that comes with django.
@gaureshp.a.8229
@gaureshp.a.8229 Жыл бұрын
@@CodeWithClinton I need a custom domain so that it's routed to my personal domain. Any other services that gives it for free?
@CodeWithClinton
@CodeWithClinton Жыл бұрын
@@gaureshp.a.8229 I don't think there is a service that gives it for free.
@tilemachoschatzipapas9379
@tilemachoschatzipapas9379 4 ай бұрын
I keep getting 404: NOT_FOUND error when i followed step by step
@shylock4157
@shylock4157 3 ай бұрын
try changing the Root Directory
@CodeWithClinton
@CodeWithClinton 3 ай бұрын
Thank you.
@CodeWithClinton
@CodeWithClinton 3 ай бұрын
You definitely missing something.
@abderrahmanegorram
@abderrahmanegorram Жыл бұрын
broo why you didn't share the source code
@CodeWithClinton
@CodeWithClinton Жыл бұрын
I will add the source Code.
@FunnyBooks-nv6in
@FunnyBooks-nv6in 3 ай бұрын
I think you follow Corey Schaeffer for build this project..
@CodeWithClinton
@CodeWithClinton 3 ай бұрын
No, I didn't.
@skillsnwokoloanthony7557
@skillsnwokoloanthony7557 6 ай бұрын
where are you from? I am guessing delta or benin 😂
@CodeWithClinton
@CodeWithClinton 6 ай бұрын
What made you think I am from Delta or Benin? Kindly let me know. By the way, I am from Imo State.
@skillsnwokoloanthony7557
@skillsnwokoloanthony7557 6 ай бұрын
You talk so fast 🐥 Oh wow I guess I was wrong then
@AzizbekGulomov-sk6kt
@AzizbekGulomov-sk6kt 7 ай бұрын
hello, this video is usefull but i had a bug Command "./build_files.sh" exited with 1 python version 3.11.4 and I wrote to build_files pip install -r requirements.txt python3.9 manage.py collectstatic
@CodeWithClinton
@CodeWithClinton 7 ай бұрын
Check the terminal on vercel the exact error message should be there.
@melisaaydnc2738
@melisaaydnc2738 16 күн бұрын
if i use db.sqlite3 only,is it still working or not?
@CodeWithClinton
@CodeWithClinton 16 күн бұрын
Try and see.
@krishnasoni-ge2cx
@krishnasoni-ge2cx Жыл бұрын
404: NOT_FOUND Code: NOT_FOUND this error is coming
@CodeWithClinton
@CodeWithClinton Жыл бұрын
What caused the error?
@krishnasoni-ge2cx
@krishnasoni-ge2cx Жыл бұрын
The project is deployed successfully but when i going to domain giving above error
@CoderandAnalyst
@CoderandAnalyst 4 ай бұрын
it didn't work it says "404: NOT_FOUND Code: NOT_FOUND ID: cdg1::vlxmf-1711096926321-ee8d97504987"
@CodeWithClinton
@CodeWithClinton 4 ай бұрын
I will look into it.
Deploy a Django web app to Vercel [FREE]
18:21
Cloud With Django
Рет қаралды 71 М.
How to Deploy a Django App and Postgres Database to Render
20:14
Pretty Printed
Рет қаралды 30 М.
Spot The Fake Animal For $10,000
00:40
MrBeast
Рет қаралды 184 МЛН
لقد سرقت حلوى القطن بشكل خفي لأصنع مصاصة🤫😎
00:33
Cool Tool SHORTS Arabic
Рет қаралды 17 МЛН
🤔Какой Орган самый длинный ? #shorts
00:42
БИМ БАМ БУМ💥
00:14
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 4 МЛН
Deploying Django with Gunicorn & Nginx: Step-by-Step Tutorial! 🔥
17:40
BeyondBasics with Rakesh
Рет қаралды 10 М.
The BEST Tool to Deploy Your Apps (Stop using Vercel)
10:07
Deploy a Django web app to Python Anywhere in 5 Mins [FREE]
9:26
The 4 best ways to deploy a Django application
7:01
London App Developer
Рет қаралды 116 М.
Deploy a Django Web App to Amazon EC2 Instance  | 2024
16:26
THE PROTON GUY
Рет қаралды 11 М.
Deploy a Django Web App on PythonAnywhere.
16:11
Code With Clinton
Рет қаралды 25 М.
Deploy a Django web app to Python Anywhere [FREE]
19:04
Cloud With Django
Рет қаралды 125 М.
How to Deploy a Frontend React App on Vercel in Minutes
9:37
Arpan Neupane
Рет қаралды 44 М.
How to Deploy a ReactJS and NodeJS app with Vercel!
14:55
Angeltheesoto
Рет қаралды 39 М.
How to Deploy Django Apps on Render - Full Tutorial - Free and Easy
35:23
Spot The Fake Animal For $10,000
00:40
MrBeast
Рет қаралды 184 МЛН