Deploy a Django Web App on PythonAnywhere.
Вставка
- Опубліковано 5 вер 2024
- In this video, I 'll show you how to deploy a Django web application on PythonAnywhere, a cloud-based Python hosting platform. You'll learn how to set up a virtual environment, create a database, configure your settings, and deploy your application. By the end of this tutorial, you'll have a fully functional Django app live on the internet!
Let's go. 🚀
Push your Django Code to Github:
• How to Push your Djang...
I highly recommend this video to anyone interested on Deploying Django project, Thank you Clinton.
I am glad the video helped.
Man, thanks a lot, I was following the pythonanywhere tutorial, and got stuck on the second point, following your video is really easy :-)
You're welcome!
man,you will not understand the pain i am going through love you man
thanks you making this video
love you man
love your content
I am glad it helped. Happy New Year to you. ✨
Have watched different video tutorials on this, but only yours worked for me. Thanks man.
You just gained a subscriber. ❤️
Glad it helped, thank you.
If you have already done can you please help bro me . I an stuck. I have been trying so hard to do this. Please help
@@legendsanimexy8217 what's your challenge ?
Trying to deploy on AWS Elastic Beanstalk was a nightmare, this is a lot easier! Thanks for your help.
Glad it helped! You are welcome.
If you have already done can you please help bro me . I an stuck. I have been trying so hard to do this. Please help
That tutorial helped me so much, you got a new subscriber !!!
Thank you, I am glad it helped.
Exactly what I needed. Thanks so much!
You're welcome.
You're welcome
Thank you!! it was the alowed hosts , you're the best!! i own you a beer
It's my pleasure.
Thank you Clinton, this was very easy to follow.
You're welcome.
@@CodeWithClinton bro can you help me . I have been trying so much to host my djnsgo website but its not working .
Whenever i am doing pip install -r requirments.txt after installing some its showing me an erorr in the end like
It's actually very big i cant wirte that all even if i want . I am getting the error at the last when it's making wheel for something like building wheel for psycopg2 .
Error : python setup.py bdist_wheel
Thank you so much. it works!!!
@@SohamJadhav-gh6cr you're welcome.
Thanks for this tutorial Clinton
Thank you.
If you have already done can you please help bro me . I an stuck. I have been trying so hard to do this. Please help
Great Tutorial Body, it worked fine!
just a question, how do i send this to my domain ?
Is pythonanywhere good for deploying real projects, such as e-commerce, realtor websites?
Pythonanywhere is a great choice.
This is a very well explained walkthrough , thank you so much. Can you make a video about how staticfiles can be set as well please ?
Staticfiles was also set in the tutorial. Thanks for the compliment. 🙏
If you have already done can you please help bro me . I an stuck. I have been trying so hard to do this. Please help
@@legendsanimexy8217 did you solve the issue with static files
Thanks this worked perfectly!
You're welcome.
If you have already done can you please help bro me . I an stuck. I have been trying so hard to do this. Please help
this works. you explain things well thank you & subscribed
Thank you so much.
If you have already done can you please help bro me . I an stuck. I have been trying so hard to do this. Please help
@@legendsanimexy8217 what part did you get up to?
Great one bro, love your channel.
Thank you.
If you have already done can you please help bro me . I an stuck. I have been trying so hard to do this. Please help
give a toturial on how to get the requirement.txt and the rest
Okay bro.
Great video!
Thank you.
when i am trying to deploy the project its showing Not Found
The requested resource was not found on this server.
You definitely missed a part in the tutorial.
Great job Clinton. Could you please help me with this issue? thanks
ImproperlyConfigured at /
settings.DATABASES is improperly configured. Please supply the ENGINE value. Check settings documentation for more details.
Search online for a proper database configuration for your django project or you can simply check your previous django projects and copy the database configurations into your current django project.
can we update our website and data , do changes and can we use postgres db
Yes, you can do all.
thank you so much!! bro.
You're welcome.
Hello! Why 'Error during template rendering'?
This is my first time hearing about this error, so sorry about it.
I already have a virtual environment setup in my django project so should I make another one while hosting it on python anywhere ?
Yes, you have to create another virtual environment.
@@CodeWithClintonthanks bro my website works fine now
@@Karma_9913 you are welcome man.
also when I'm clicking the link it says that something went wrong
Oh sorry.
very helpful
Thank you.
how to install requirements.txt it doesn't install in my website said that its not inside of my directory, when I'm putting it in the directory it still doesn't install, help me please
Make sure the requirements file is in the root directory of your Django project.
it is
still not working
Thanks a lot brother, but my static files (CSS and images) are not being accessed. What to do for that?
In the web tab in the static files section u have to add static files there like in terms of path
Thanks for the tutorial. Please, what if I am using the latest version of Python(3.11)?
You're welcome, your python version does not matter, just follow the steps I took in the tutorial.
@@CodeWithClinton Alright. Thanks. Mine is actually an API project.
@@Austin_08 you are welcome.
If you have already done can you please help bro me . I an stuck. I have been trying so hard to do this. Please help
kindly collectstatics ko b explain kr dyn
Okay.
Yep! Thanks
You're welcome.
hi image is not showing on the live server what should I do?
Host the images on a separate server like aws S3 bucket.
@@CodeWithClintondoes static files not work on python anywhere?
After hoisting images on other servers how will I integrate with it.
Please provide tutorial for MySQL database on localhost
Okay bro.
Hi Clinton, I am facing errors when I try to clone the git repository on the pythonanywhere bash. Please, any help with that?
What's the error message?
It asks for the github username and password. But when I provide them, it will tell me that it no longer support that form of authentication. But when you cloned yours, it didn't request for any login details.
@@Austin_08 yeah, it was changed recently.
@@Austin_08 you have to create a token on GitHub to be able to pass through while using PythonAnywhere
If you have already done can you please help bro me . I an stuck. I have been trying so hard to do this. Please help
hi clinton i have followed you till the end and when I open my website at last my website it running but all the content changed and everything on my website showing wrong.
Showing wrong, what do you mean??
@@CodeWithClinton i mean the alignment of all content of my website is changed and not a single css part is working.
If you have already done can you please help bro me . I an stuck. I have been trying so hard to do this. Please help
tanks bro!!
You're welcome.
hi, if i have not set a requirement.txt file, how should i do, should i run directly pip install django ?
You have to setup a requirement.txt file in your project.
@@CodeWithClinton no, should i ?
@@fitzgerardmouliom443 yes you should.
nice video
Thank you.
staticfiles not found in my project :|
You have to configure staticfiles in your settings.py
Hi Clinton, I have successfully deployed it. Thanks so much. But I still need clarification on something o. It's a project in progress. So will it automatically deploy any changes I push to my repo?
It won't automatically deploy you have to go down to the PythonAnywhere console and then pull your changes.
In your PythonAnywhere console simply cd into your project directory and run "git pull".
@@CodeWithClinton Ok. And once I pull, it will deploy? thank you very much bro.
@@Austin_08 yes bro, you are welcome.
If you have already done can you please help bro me . I an stuck. I have been trying so hard to do this. Please help
my github doesn't allow me to upload db.sqlite3 file because it is more than 25mb (31mb). please help. what i can do?
What I can think of, is using a live Postgres database.
I have mysql will i be able to use free plan
@@ARSALANRATHER404 I can't say, try it out.
@@CodeWithClinton can you help with heroku im facing sognup problem
"mkvirtualenv venv" does not work.what to do?
Which operating system are you using?
Hi Clinton, I am here again o. I can not access my database after deploying. It throws 500 server error.
I have resolved this issue. But my otp verification third-party service is not working on pythonanywhere
Have you tried a different hosting service?
@@CodeWithClinton Yes. I have used Heroku
this is good but my static files dose not run .
Oh, sorry.
thank u man
got fixed tho
@@CodeWithClinton
my static files are not working after deployed, Please help
You need to configure your staticfiles in your settings.py file.
hello, have you manage to solve with static file, I'm am stuck too, please help how you did it.
@@wilfrd_ke watch this to solve the static issue. ua-cam.com/video/CdtQSiC8ZNQ/v-deo.html
@@CodeWithClinton ok thanks let me watch it now
@@wilfrd_ke you are welcome.
Thanks for this Man.
But, how can i use access the Paid Hosting...i don't want the . pythonanywhere in the address
🙏
During the signup process you can choose between a free or paid account.
If you have already done can you please help bro me . I an stuck. I have been trying so hard to do this. Please help
nice video ! and how to update it ?
Thank you, I covered updating in this video ua-cam.com/video/CdtQSiC8ZNQ/v-deo.htmlsi=6yGXwFWh_ujo44sJ
If you have already done can you please help bro me . I an stuck. I have been trying so hard to do this. Please help
How long does it last?
I don't understand.
Before the project will be taken down or is it free for life?
@@Dani3lll07 it free for life, you just have to refresh the server every 3 months.
Throws me 500 server error =(
You didn't follow me accordingly.
I did
my app contains a jupyternote book so I keep getting this error 2023-11-13 20:51:26,733: Error running WSGI application
2023-11-13 20:51:26,761: FileNotFoundError: [Errno 2] No such file or directory: './savedModels/model.joblib' , any ideas ?
I really wish I could help.