Тёмный

Deploy a Django Web App on PythonAnywhere. 

Code With Clinton
Подписаться 6 тыс.
Просмотров 24 тыс.
50% 1

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

Опубликовано:

 

30 апр 2023

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 140   
@jpcodes373
@jpcodes373 9 месяцев назад
Have watched different video tutorials on this, but only yours worked for me. Thanks man. You just gained a subscriber. ❤️
@CodeWithClinton
@CodeWithClinton 9 месяцев назад
Glad it helped, thank you.
@legendsanimexy8217
@legendsanimexy8217 8 месяцев назад
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 8 месяцев назад
@@legendsanimexy8217 what's your challenge ?
@abrscab1239
@abrscab1239 4 месяца назад
I highly recommend this video to anyone interested on Deploying Django project, Thank you Clinton.
@CodeWithClinton
@CodeWithClinton 4 месяца назад
I am glad the video helped.
@toitosimracing
@toitosimracing Месяц назад
That tutorial helped me so much, you got a new subscriber !!!
@CodeWithClinton
@CodeWithClinton Месяц назад
Thank you, I am glad it helped.
@divyanshukrishna6958
@divyanshukrishna6958 6 месяцев назад
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 6 месяцев назад
I am glad it helped. Happy New Year to you. ✨
@potrishead
@potrishead 17 дней назад
Exactly what I needed. Thanks so much!
@CodeWithClinton
@CodeWithClinton 17 дней назад
You're welcome.
@CodeWithClinton
@CodeWithClinton 17 дней назад
You're welcome
@mathapelomphahlele5309
@mathapelomphahlele5309 9 месяцев назад
Thank you Clinton, this was very easy to follow.
@CodeWithClinton
@CodeWithClinton 9 месяцев назад
You're welcome.
@legendsanimexy8217
@legendsanimexy8217 8 месяцев назад
​@@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
@mattunwin4254
@mattunwin4254 9 месяцев назад
Trying to deploy on AWS Elastic Beanstalk was a nightmare, this is a lot easier! Thanks for your help.
@CodeWithClinton
@CodeWithClinton 9 месяцев назад
Glad it helped! You are welcome.
@legendsanimexy8217
@legendsanimexy8217 8 месяцев назад
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
@kanweiedward5728
@kanweiedward5728 Год назад
Great one bro, love your channel.
@CodeWithClinton
@CodeWithClinton Год назад
Thank you.
@legendsanimexy8217
@legendsanimexy8217 8 месяцев назад
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 9 месяцев назад
this works. you explain things well thank you & subscribed
@CodeWithClinton
@CodeWithClinton 9 месяцев назад
Thank you so much.
@legendsanimexy8217
@legendsanimexy8217 8 месяцев назад
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 8 месяцев назад
@@legendsanimexy8217 what part did you get up to?
@pranit_7D
@pranit_7D 9 месяцев назад
Thanks this worked perfectly!
@CodeWithClinton
@CodeWithClinton 9 месяцев назад
You're welcome.
@legendsanimexy8217
@legendsanimexy8217 8 месяцев назад
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
@xband0
@xband0 Год назад
Thanks for this tutorial Clinton
@CodeWithClinton
@CodeWithClinton Год назад
Thank you.
@legendsanimexy8217
@legendsanimexy8217 8 месяцев назад
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
@catailabaca2937
@catailabaca2937 2 месяца назад
Thank you!! it was the alowed hosts , you're the best!! i own you a beer
@CodeWithClinton
@CodeWithClinton 2 месяца назад
It's my pleasure.
@denizerkan2838
@denizerkan2838 8 месяцев назад
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 8 месяцев назад
Staticfiles was also set in the tutorial. Thanks for the compliment. 🙏
@legendsanimexy8217
@legendsanimexy8217 8 месяцев назад
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 2 месяца назад
@@legendsanimexy8217 did you solve the issue with static files
@lembryant9922
@lembryant9922 3 месяца назад
Great video!
@CodeWithClinton
@CodeWithClinton 3 месяца назад
Thank you.
@luuvinhtuong
@luuvinhtuong 8 месяцев назад
thank you so much!! bro.
@CodeWithClinton
@CodeWithClinton 8 месяцев назад
You're welcome.
@officialnchitah9865
@officialnchitah9865 Год назад
Yep! Thanks
@CodeWithClinton
@CodeWithClinton Год назад
You're welcome.
@Zero9BS
@Zero9BS 5 месяцев назад
tanks bro!!
@CodeWithClinton
@CodeWithClinton 5 месяцев назад
You're welcome.
@fairozfardin753
@fairozfardin753 5 месяцев назад
very helpful
@CodeWithClinton
@CodeWithClinton 5 месяцев назад
Thank you.
@rodrigoriveras
@rodrigoriveras 9 месяцев назад
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 9 месяцев назад
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.
@JustPython
@JustPython Год назад
nice video
@CodeWithClinton
@CodeWithClinton Год назад
Thank you.
@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 8 месяцев назад
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
@kedarshidhaye6950
@kedarshidhaye6950 11 месяцев назад
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 11 месяцев назад
Yes, you have to create another virtual environment.
@Karma_9913
@Karma_9913 11 месяцев назад
​@@CodeWithClintonthanks bro my website works fine now
@CodeWithClinton
@CodeWithClinton 11 месяцев назад
@@Karma_9913 you are welcome man.
@vinayakupadhyay7527
@vinayakupadhyay7527 10 месяцев назад
Thanks a lot brother, but my static files (CSS and images) are not being accessed. What to do for that?
@Karma_9913
@Karma_9913 10 месяцев назад
In the web tab in the static files section u have to add static files there like in terms of path
@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 8 месяцев назад
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
@ayushvanvary
@ayushvanvary 2 месяца назад
can we update our website and data , do changes and can we use postgres db
@CodeWithClinton
@CodeWithClinton 2 месяца назад
Yes, you can do all.
@CHRISDANIELDAQUIOAG
@CHRISDANIELDAQUIOAG 28 дней назад
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 27 дней назад
Make sure the requirements file is in the root directory of your Django project.
@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 8 месяцев назад
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
@FactsInsights5
@FactsInsights5 9 месяцев назад
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 9 месяцев назад
Showing wrong, what do you mean??
@FactsInsights5
@FactsInsights5 9 месяцев назад
@@CodeWithClinton i mean the alignment of all content of my website is changed and not a single css part is working.
@legendsanimexy8217
@legendsanimexy8217 8 месяцев назад
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
@TheLoneMan-fk2iu
@TheLoneMan-fk2iu Месяц назад
give a toturial on how to get the requirement.txt and the rest
@CodeWithClinton
@CodeWithClinton Месяц назад
Okay bro.
@fitzgerardmouliom443
@fitzgerardmouliom443 10 месяцев назад
hi, if i have not set a requirement.txt file, how should i do, should i run directly pip install django ?
@CodeWithClinton
@CodeWithClinton 10 месяцев назад
You have to setup a requirement.txt file in your project.
@fitzgerardmouliom443
@fitzgerardmouliom443 10 месяцев назад
@@CodeWithClinton no, should i ?
@CodeWithClinton
@CodeWithClinton 10 месяцев назад
@@fitzgerardmouliom443 yes you should.
@yuvrajlolage4618
@yuvrajlolage4618 10 месяцев назад
Please provide tutorial for MySQL database on localhost
@CodeWithClinton
@CodeWithClinton 10 месяцев назад
Okay bro.
@LiveWelLounge
@LiveWelLounge 3 месяца назад
kindly collectstatics ko b explain kr dyn
@CodeWithClinton
@CodeWithClinton 3 месяца назад
Okay.
@CHRISDANIELDAQUIOAG
@CHRISDANIELDAQUIOAG 28 дней назад
also when I'm clicking the link it says that something went wrong
@CodeWithClinton
@CodeWithClinton 27 дней назад
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
@stepankhachatryan1544
@stepankhachatryan1544 8 месяцев назад
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 8 месяцев назад
What I can think of, is using a live Postgres database.
@ARSALANRATHER404
@ARSALANRATHER404 7 месяцев назад
I have mysql will i be able to use free plan
@CodeWithClinton
@CodeWithClinton 7 месяцев назад
@@ARSALANRATHER404 I can't say, try it out.
@ARSALANRATHER404
@ARSALANRATHER404 7 месяцев назад
@@CodeWithClinton can you help with heroku im facing sognup problem
@BenjieBejo
@BenjieBejo 26 дней назад
Hello! Why 'Error during template rendering'?
@CodeWithClinton
@CodeWithClinton 26 дней назад
This is my first time hearing about this error, so sorry about it.
@weslleypablo6287
@weslleypablo6287 Год назад
staticfiles not found in my project :|
@CodeWithClinton
@CodeWithClinton Год назад
You have to configure staticfiles in your settings.py
@pathak.8448
@pathak.8448 4 месяца назад
hi image is not showing on the live server what should I do?
@CodeWithClinton
@CodeWithClinton 4 месяца назад
Host the images on a separate server like aws S3 bucket.
@pathak.8448
@pathak.8448 4 месяца назад
@@CodeWithClintondoes static files not work on python anywhere?
@pathak.8448
@pathak.8448 4 месяца назад
After hoisting images on other servers how will I integrate with it.
@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 8 месяцев назад
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
@user-nu2zc6iu3o
@user-nu2zc6iu3o 5 месяцев назад
"mkvirtualenv venv" does not work.what to do?
@CodeWithClinton
@CodeWithClinton 5 месяцев назад
Which operating system are you using?
@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 11 месяцев назад
hello, have you manage to solve with static file, I'm am stuck too, please help how you did it.
@CodeWithClinton
@CodeWithClinton 11 месяцев назад
@@wilfrd_ke watch this to solve the static issue. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-CdtQSiC8ZNQ.html
@wilfrd_ke
@wilfrd_ke 11 месяцев назад
@@CodeWithClinton ok thanks let me watch it now
@CodeWithClinton
@CodeWithClinton 11 месяцев назад
@@wilfrd_ke you are welcome.
@abd1428
@abd1428 5 месяцев назад
this is good but my static files dose not run .
@CodeWithClinton
@CodeWithClinton 5 месяцев назад
Oh, sorry.
@abd1428
@abd1428 5 месяцев назад
thank u man got fixed tho @@CodeWithClinton
@Dani3lll07
@Dani3lll07 8 месяцев назад
How long does it last?
@CodeWithClinton
@CodeWithClinton 8 месяцев назад
I don't understand.
@Dani3lll07
@Dani3lll07 8 месяцев назад
Before the project will be taken down or is it free for life?
@CodeWithClinton
@CodeWithClinton 8 месяцев назад
@@Dani3lll07 it free for life, you just have to refresh the server every 3 months.
@mohamedazizchibani6004
@mohamedazizchibani6004 9 месяцев назад
nice video ! and how to update it ?
@CodeWithClinton
@CodeWithClinton 9 месяцев назад
Thank you, I covered updating in this video ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-CdtQSiC8ZNQ.htmlsi=6yGXwFWh_ujo44sJ
@legendsanimexy8217
@legendsanimexy8217 8 месяцев назад
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
@magnusvalterkaljuste9491
@magnusvalterkaljuste9491 11 месяцев назад
Throws me 500 server error =(
@CodeWithClinton
@CodeWithClinton 11 месяцев назад
You didn't follow me accordingly.
@magnusvalterkaljuste9491
@magnusvalterkaljuste9491 11 месяцев назад
I did
@user-mg8cn4qe4v
@user-mg8cn4qe4v 7 месяцев назад
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 7 месяцев назад
I really wish I could help.
Далее
Deploy A Django Rest API on PythonAnywhere for Free.
28:59
Deploy a Django web app to Vercel [FREE]
18:21
Просмотров 66 тыс.
Deploy a Django web app to Python Anywhere [FREE]
19:04
How to Deploy a Fullstack Django Web App on Vercel.
25:26
Deploy a Django web app on Amazon EC2
21:47
Просмотров 80 тыс.
How To Create Django Website In PythonAnyWhere
16:38