Deploy a Django Web App on PythonAnywhere.

  Рет қаралды 28,420

Code With Clinton

Code With Clinton

Күн бұрын

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...

Пікірлер: 155
@abrscab1239
@abrscab1239 7 ай бұрын
I highly recommend this video to anyone interested on Deploying Django project, Thank you Clinton.
@CodeWithClinton
@CodeWithClinton 7 ай бұрын
I am glad the video helped.
@eduardomurphyperez717
@eduardomurphyperez717 Ай бұрын
Man, thanks a lot, I was following the pythonanywhere tutorial, and got stuck on the second point, following your video is really easy :-)
@CodeWithClinton
@CodeWithClinton Ай бұрын
You're welcome!
@marcomoldenhauer7903
@marcomoldenhauer7903 Ай бұрын
Hi Clinton, Thank you so much for the video-it’s been incredibly helpful! I do have one question, though: How did you manage to ensure that all your CSS styles are applied? My HTML template loads fine, but unfortunately, the CSS styles aren’t showing up. Thanks again, and best regards, Marco
@CodeWithClinton
@CodeWithClinton Ай бұрын
@@marcomoldenhauer7903 I guess you didn't configure whitenoise properly.
@jpcodes373
@jpcodes373 Жыл бұрын
Have watched different video tutorials on this, but only yours worked for me. Thanks man. You just gained a subscriber. ❤️
@CodeWithClinton
@CodeWithClinton Жыл бұрын
Glad it helped, thank you.
@legendsanimexy8217
@legendsanimexy8217 11 ай бұрын
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
@jpcodes373
@jpcodes373 11 ай бұрын
@@legendsanimexy8217 what's your challenge ?
@piorprogramadorbr9481
@piorprogramadorbr9481 Ай бұрын
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?
@CodeWithClinton
@CodeWithClinton Ай бұрын
Pythonanywhere is a great choice.
@divyanshukrishna6958
@divyanshukrishna6958 9 ай бұрын
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
@CodeWithClinton
@CodeWithClinton 9 ай бұрын
I am glad it helped. Happy New Year to you. ✨
@toitosimracing
@toitosimracing 4 ай бұрын
That tutorial helped me so much, you got a new subscriber !!!
@CodeWithClinton
@CodeWithClinton 4 ай бұрын
Thank you, I am glad it helped.
@mattunwin4254
@mattunwin4254 Жыл бұрын
Trying to deploy on AWS Elastic Beanstalk was a nightmare, this is a lot easier! Thanks for your help.
@CodeWithClinton
@CodeWithClinton Жыл бұрын
Glad it helped! You are welcome.
@legendsanimexy8217
@legendsanimexy8217 11 ай бұрын
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
@denizerkan2838
@denizerkan2838 11 ай бұрын
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 ?
@CodeWithClinton
@CodeWithClinton 11 ай бұрын
Staticfiles was also set in the tutorial. Thanks for the compliment. 🙏
@legendsanimexy8217
@legendsanimexy8217 11 ай бұрын
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
@ssebattaadam9903
@ssebattaadam9903 5 ай бұрын
@@legendsanimexy8217 did you solve the issue with static files
@rodrigoriveras
@rodrigoriveras Жыл бұрын
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.
@CodeWithClinton
@CodeWithClinton Жыл бұрын
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.
@kedarshidhaye6950
@kedarshidhaye6950 Жыл бұрын
I already have a virtual environment setup in my django project so should I make another one while hosting it on python anywhere ?
@CodeWithClinton
@CodeWithClinton Жыл бұрын
Yes, you have to create another virtual environment.
@Karma_9913
@Karma_9913 Жыл бұрын
​@@CodeWithClintonthanks bro my website works fine now
@CodeWithClinton
@CodeWithClinton Жыл бұрын
@@Karma_9913 you are welcome man.
@dheerajdubey2538
@dheerajdubey2538 Ай бұрын
when i am trying to deploy the project its showing Not Found The requested resource was not found on this server.
@CodeWithClinton
@CodeWithClinton Ай бұрын
You definitely missed a part in the tutorial.
@Austin_08
@Austin_08 Жыл бұрын
Thanks for the tutorial. Please, what if I am using the latest version of Python(3.11)?
@CodeWithClinton
@CodeWithClinton Жыл бұрын
You're welcome, your python version does not matter, just follow the steps I took in the tutorial.
@Austin_08
@Austin_08 Жыл бұрын
@@CodeWithClinton Alright. Thanks. Mine is actually an API project.
@CodeWithClinton
@CodeWithClinton Жыл бұрын
@@Austin_08 you are welcome.
@legendsanimexy8217
@legendsanimexy8217 11 ай бұрын
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
@Austin_08
@Austin_08 Жыл бұрын
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?
@CodeWithClinton
@CodeWithClinton Жыл бұрын
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".
@Austin_08
@Austin_08 Жыл бұрын
@@CodeWithClinton Ok. And once I pull, it will deploy? thank you very much bro.
@CodeWithClinton
@CodeWithClinton Жыл бұрын
@@Austin_08 yes bro, you are welcome.
@legendsanimexy8217
@legendsanimexy8217 11 ай бұрын
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
@vinayakupadhyay7527
@vinayakupadhyay7527 Жыл бұрын
Thanks a lot brother, but my static files (CSS and images) are not being accessed. What to do for that?
@Karma_9913
@Karma_9913 Жыл бұрын
In the web tab in the static files section u have to add static files there like in terms of path
@mathapelomphahlele5309
@mathapelomphahlele5309 Жыл бұрын
Thank you Clinton, this was very easy to follow.
@CodeWithClinton
@CodeWithClinton Жыл бұрын
You're welcome.
@legendsanimexy8217
@legendsanimexy8217 11 ай бұрын
​@@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
@FactsInsights5
@FactsInsights5 Жыл бұрын
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.
@CodeWithClinton
@CodeWithClinton Жыл бұрын
Showing wrong, what do you mean??
@FactsInsights5
@FactsInsights5 Жыл бұрын
@@CodeWithClinton i mean the alignment of all content of my website is changed and not a single css part is working.
@legendsanimexy8217
@legendsanimexy8217 11 ай бұрын
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
@Austin_08
@Austin_08 Жыл бұрын
Hi Clinton, I am facing errors when I try to clone the git repository on the pythonanywhere bash. Please, any help with that?
@CodeWithClinton
@CodeWithClinton Жыл бұрын
What's the error message?
@Austin_08
@Austin_08 Жыл бұрын
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.
@CodeWithClinton
@CodeWithClinton Жыл бұрын
@@Austin_08 yeah, it was changed recently.
@CodeWithClinton
@CodeWithClinton Жыл бұрын
@@Austin_08 you have to create a token on GitHub to be able to pass through while using PythonAnywhere
@legendsanimexy8217
@legendsanimexy8217 11 ай бұрын
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
@CHRISDANIELDAQUIOAG
@CHRISDANIELDAQUIOAG 4 ай бұрын
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
@CodeWithClinton
@CodeWithClinton 4 ай бұрын
Make sure the requirements file is in the root directory of your Django project.
@sabaparween771
@sabaparween771 3 ай бұрын
it is
@sabaparween771
@sabaparween771 3 ай бұрын
still not working
@BenjieBejo
@BenjieBejo 4 ай бұрын
Hello! Why 'Error during template rendering'?
@CodeWithClinton
@CodeWithClinton 4 ай бұрын
This is my first time hearing about this error, so sorry about it.
@ayushvanvary
@ayushvanvary 5 ай бұрын
can we update our website and data , do changes and can we use postgres db
@CodeWithClinton
@CodeWithClinton 5 ай бұрын
Yes, you can do all.
@TheLoneMan-fk2iu
@TheLoneMan-fk2iu 4 ай бұрын
give a toturial on how to get the requirement.txt and the rest
@CodeWithClinton
@CodeWithClinton 4 ай бұрын
Okay bro.
@potrishead
@potrishead 4 ай бұрын
Exactly what I needed. Thanks so much!
@CodeWithClinton
@CodeWithClinton 4 ай бұрын
You're welcome.
@CodeWithClinton
@CodeWithClinton 4 ай бұрын
You're welcome
@LiveWelLounge
@LiveWelLounge 7 ай бұрын
kindly collectstatics ko b explain kr dyn
@CodeWithClinton
@CodeWithClinton 7 ай бұрын
Okay.
@fitzgerardmouliom443
@fitzgerardmouliom443 Жыл бұрын
hi, if i have not set a requirement.txt file, how should i do, should i run directly pip install django ?
@CodeWithClinton
@CodeWithClinton Жыл бұрын
You have to setup a requirement.txt file in your project.
@fitzgerardmouliom443
@fitzgerardmouliom443 Жыл бұрын
@@CodeWithClinton no, should i ?
@CodeWithClinton
@CodeWithClinton Жыл бұрын
@@fitzgerardmouliom443 yes you should.
@yuvrajlolage4618
@yuvrajlolage4618 Жыл бұрын
Please provide tutorial for MySQL database on localhost
@CodeWithClinton
@CodeWithClinton Жыл бұрын
Okay bro.
@CHRISDANIELDAQUIOAG
@CHRISDANIELDAQUIOAG 4 ай бұрын
also when I'm clicking the link it says that something went wrong
@CodeWithClinton
@CodeWithClinton 4 ай бұрын
Oh sorry.
@Austin_08
@Austin_08 Жыл бұрын
Hi Clinton, I am here again o. I can not access my database after deploying. It throws 500 server error.
@Austin_08
@Austin_08 Жыл бұрын
I have resolved this issue. But my otp verification third-party service is not working on pythonanywhere
@CodeWithClinton
@CodeWithClinton Жыл бұрын
Have you tried a different hosting service?
@Austin_08
@Austin_08 Жыл бұрын
@@CodeWithClinton Yes. I have used Heroku
@pathak.8448
@pathak.8448 7 ай бұрын
hi image is not showing on the live server what should I do?
@CodeWithClinton
@CodeWithClinton 7 ай бұрын
Host the images on a separate server like aws S3 bucket.
@pathak.8448
@pathak.8448 7 ай бұрын
@@CodeWithClintondoes static files not work on python anywhere?
@pathak.8448
@pathak.8448 7 ай бұрын
After hoisting images on other servers how will I integrate with it.
@sukhi_thorifinn
@sukhi_thorifinn 2 ай бұрын
Thank you so much. it works!!!
@CodeWithClinton
@CodeWithClinton 2 ай бұрын
@@sukhi_thorifinn you're welcome.
@stepankhachatryan1544
@stepankhachatryan1544 11 ай бұрын
my github doesn't allow me to upload db.sqlite3 file because it is more than 25mb (31mb). please help. what i can do?
@CodeWithClinton
@CodeWithClinton 11 ай бұрын
What I can think of, is using a live Postgres database.
@ARSALANRATHER404
@ARSALANRATHER404 10 ай бұрын
I have mysql will i be able to use free plan
@CodeWithClinton
@CodeWithClinton 10 ай бұрын
@@ARSALANRATHER404 I can't say, try it out.
@ARSALANRATHER404
@ARSALANRATHER404 10 ай бұрын
@@CodeWithClinton can you help with heroku im facing sognup problem
@catailabaca2937
@catailabaca2937 6 ай бұрын
Thank you!! it was the alowed hosts , you're the best!! i own you a beer
@CodeWithClinton
@CodeWithClinton 6 ай бұрын
It's my pleasure.
@yusufmayowa
@yusufmayowa Жыл бұрын
Thanks for this Man. But, how can i use access the Paid Hosting...i don't want the . pythonanywhere in the address 🙏
@CodeWithClinton
@CodeWithClinton Жыл бұрын
During the signup process you can choose between a free or paid account.
@legendsanimexy8217
@legendsanimexy8217 11 ай бұрын
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
@Atina-r4g
@Atina-r4g 9 ай бұрын
"mkvirtualenv venv" does not work.what to do?
@CodeWithClinton
@CodeWithClinton 9 ай бұрын
Which operating system are you using?
@weslleypablo6287
@weslleypablo6287 Жыл бұрын
staticfiles not found in my project :|
@CodeWithClinton
@CodeWithClinton Жыл бұрын
You have to configure staticfiles in your settings.py
@RealReir
@RealReir Жыл бұрын
How long does it last?
@CodeWithClinton
@CodeWithClinton Жыл бұрын
I don't understand.
@RealReir
@RealReir Жыл бұрын
Before the project will be taken down or is it free for life?
@CodeWithClinton
@CodeWithClinton Жыл бұрын
@@RealReir it free for life, you just have to refresh the server every 3 months.
@nadahimdi-j5d
@nadahimdi-j5d 11 ай бұрын
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 ?
@CodeWithClinton
@CodeWithClinton 11 ай бұрын
I really wish I could help.
@theimin4442
@theimin4442 14 күн бұрын
nihuya tushunmadim e kot nahuy tushunarlirok yoz
@CodeWithClinton
@CodeWithClinton 14 күн бұрын
@@theimin4442 thank you
@abd1428
@abd1428 8 ай бұрын
this is good but my static files dose not run .
@CodeWithClinton
@CodeWithClinton 8 ай бұрын
Oh, sorry.
@abd1428
@abd1428 8 ай бұрын
thank u man got fixed tho @@CodeWithClinton
@vinsshaji3607
@vinsshaji3607 Жыл бұрын
my static files are not working after deployed, Please help
@CodeWithClinton
@CodeWithClinton Жыл бұрын
You need to configure your staticfiles in your settings.py file.
@wilfrd_ke
@wilfrd_ke Жыл бұрын
hello, have you manage to solve with static file, I'm am stuck too, please help how you did it.
@CodeWithClinton
@CodeWithClinton Жыл бұрын
@@wilfrd_ke watch this to solve the static issue. kzbin.info/www/bejne/eZXXgoafeJ2NhLM
@wilfrd_ke
@wilfrd_ke Жыл бұрын
@@CodeWithClinton ok thanks let me watch it now
@CodeWithClinton
@CodeWithClinton Жыл бұрын
@@wilfrd_ke you are welcome.
@kanweiedward5728
@kanweiedward5728 Жыл бұрын
Great one bro, love your channel.
@CodeWithClinton
@CodeWithClinton Жыл бұрын
Thank you.
@legendsanimexy8217
@legendsanimexy8217 11 ай бұрын
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
@pranit_7D
@pranit_7D Жыл бұрын
Thanks this worked perfectly!
@CodeWithClinton
@CodeWithClinton Жыл бұрын
You're welcome.
@legendsanimexy8217
@legendsanimexy8217 11 ай бұрын
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
@Jook2rib
@Jook2rib Жыл бұрын
this works. you explain things well thank you & subscribed
@CodeWithClinton
@CodeWithClinton Жыл бұрын
Thank you so much.
@legendsanimexy8217
@legendsanimexy8217 11 ай бұрын
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
@Jook2rib
@Jook2rib 11 ай бұрын
@@legendsanimexy8217 what part did you get up to?
@xband0
@xband0 Жыл бұрын
Thanks for this tutorial Clinton
@CodeWithClinton
@CodeWithClinton Жыл бұрын
Thank you.
@legendsanimexy8217
@legendsanimexy8217 11 ай бұрын
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
@mohamedazizchibani6004
@mohamedazizchibani6004 Жыл бұрын
nice video ! and how to update it ?
@CodeWithClinton
@CodeWithClinton Жыл бұрын
Thank you, I covered updating in this video kzbin.info/www/bejne/eZXXgoafeJ2NhLMsi=6yGXwFWh_ujo44sJ
@legendsanimexy8217
@legendsanimexy8217 11 ай бұрын
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
@lembryant9922
@lembryant9922 6 ай бұрын
Great video!
@CodeWithClinton
@CodeWithClinton 6 ай бұрын
Thank you.
@fairozfardin753
@fairozfardin753 8 ай бұрын
very helpful
@CodeWithClinton
@CodeWithClinton 8 ай бұрын
Thank you.
@luuvinhtuong
@luuvinhtuong 11 ай бұрын
thank you so much!! bro.
@CodeWithClinton
@CodeWithClinton 11 ай бұрын
You're welcome.
@officialnchitah9865
@officialnchitah9865 Жыл бұрын
Yep! Thanks
@CodeWithClinton
@CodeWithClinton Жыл бұрын
You're welcome.
@MrSteeiii
@MrSteeiii Ай бұрын
Thanks
@CodeWithClinton
@CodeWithClinton Ай бұрын
@@MrSteeiii you are welcome.
@Zero9BS
@Zero9BS 9 ай бұрын
tanks bro!!
@CodeWithClinton
@CodeWithClinton 9 ай бұрын
You're welcome.
@magnusvalterkaljuste9491
@magnusvalterkaljuste9491 Жыл бұрын
Throws me 500 server error =(
@CodeWithClinton
@CodeWithClinton Жыл бұрын
You didn't follow me accordingly.
@magnusvalterkaljuste9491
@magnusvalterkaljuste9491 Жыл бұрын
I did
@JustPython
@JustPython Жыл бұрын
nice video
@CodeWithClinton
@CodeWithClinton Жыл бұрын
Thank you.
Django CRM Course - Learn how to build a CRM using Python
53:33
Code With Stein
Рет қаралды 61 М.
Deploy Django Project & Postgresql Database to Render for Free | 2024
31:49
Smart Sigma Kid #funny #sigma
00:14
CRAZY GREAPA
Рет қаралды 3,6 МЛН
Миллионер | 1 - серия
34:31
Million Show
Рет қаралды 2,8 МЛН
Help Me Celebrate! 😍🙏
00:35
Alan Chikin Chow
Рет қаралды 83 МЛН
Deploy a Django web app to Vercel [FREE]
18:21
Cloud With Django
Рет қаралды 80 М.
The 4 best ways to deploy a Django application
7:01
London App Developer
Рет қаралды 120 М.
How to Deploy a Django App and Postgres Database to Render
20:14
Pretty Printed
Рет қаралды 35 М.
How to Deploy a Fullstack Django Web App on Vercel.
25:26
Code With Clinton
Рет қаралды 26 М.
Deploy a Django web app to Python Anywhere in 5 Mins [FREE]
9:26
Deploy a Django web app to Python Anywhere [FREE]
19:04
Cloud With Django
Рет қаралды 138 М.
Deploy A Django Rest API on PythonAnywhere for Free.
28:59
Code With Clinton
Рет қаралды 6 М.
How To Create Django Website In PythonAnyWhere
16:38
TechieBlogging
Рет қаралды 8 М.
Deploy a Django web app on Amazon EC2
21:47
Cloud With Django
Рет қаралды 95 М.
Smart Sigma Kid #funny #sigma
00:14
CRAZY GREAPA
Рет қаралды 3,6 МЛН