Deploy a Django Web App to Amazon EC2 Instance | 2024

  Рет қаралды 11,443

THE PROTON GUY

THE PROTON GUY

10 ай бұрын

Welcome to my step-by-step tutorial on deploying a Django application to Amazon EC2! 🚀 In this guide, I'll walk you through the entire process of setting up an Amazon EC2 instance, configuring the necessary environments, and deploying a robust or small Django project seamlessly. Whether you're a beginner looking to host your first web application or a seasoned developer wanting to streamline your deployment process on AWS, this tutorial has got you covered.
If you found this tutorial helpful, don't forget to hit the 👍 button, share with your peers, and subscribe for more tech tutorials. Drop any questions or challenges you encountered in the comments, and I'll do my best to assist! Happy coding and deploying! 💻🌐
******* Socials *******
Discord: / discord
Patreon: / theprotonguy
Linkedin: / ayodeji-adesola-15392a22b
Instagram: / the_proton_guy
Telegram channel: t.me/sO6ZFOaiaMszYzI0
Twitter: / ayodejiadesola_
#Django#AmazonEC2#django #WebDeployment

Пікірлер: 63
@Lifewithade2003
@Lifewithade2003 10 ай бұрын
Wow! This was so helpful
@Priya-lf5vw
@Priya-lf5vw 5 ай бұрын
When I have added an inbound rule. After when I i refresh I am getting "This site can't provide a secure connection". How to resolve it?
@user-uo3nq3hp7b
@user-uo3nq3hp7b 4 ай бұрын
Thanks alot bro! this made it easy for me🙏
@the_proton_guy
@the_proton_guy 4 ай бұрын
Glad I could help 🎉
@nishant4171
@nishant4171 23 күн бұрын
Thank You so much!
@the_proton_guy
@the_proton_guy 23 күн бұрын
You’re welcome! 🎉
@jskoder
@jskoder 3 ай бұрын
Why you haven't exposed port 80 and 443 for proper deployment?
@pythonN00b665
@pythonN00b665 4 ай бұрын
Actually worked, Thank you
@the_proton_guy
@the_proton_guy 4 ай бұрын
Glad I could help 🎉
@kiraisonline
@kiraisonline 10 ай бұрын
You're the best teacher I never had in school lol. Straight to the point. It was a big help for my first Django project. I had a question: How would you set up CI/CD?
@the_proton_guy
@the_proton_guy 10 ай бұрын
Thank you for the kind words! If you wanted to setup CI/CD, you would have to create a pipeline on aws that handles that. I will probably make a tutorial on that very soon
@kiraisonline
@kiraisonline 10 ай бұрын
@@the_proton_guy Awesome, I look forward to it! I'm so glad I found your channel, keep it up and thank you
@the_proton_guy
@the_proton_guy 10 ай бұрын
Thank you 🥳
@user-bb3ih7ys6j
@user-bb3ih7ys6j 10 ай бұрын
Thank you. it helped me a lot. Saludos
@the_proton_guy
@the_proton_guy 10 ай бұрын
Glad I could help 🥳
@austinhomolka
@austinhomolka 3 ай бұрын
Great video brother. Thank you.
@the_proton_guy
@the_proton_guy 3 ай бұрын
Thank you!
@toddgilbey3979
@toddgilbey3979 4 ай бұрын
Great tutorial, however, seeing as you're now in production why have you not set debug = false in your settings.py file? Much appreciated.
@the_proton_guy
@the_proton_guy 4 ай бұрын
Thank you! I didn’t set debug to false because i was just using it as a test project for deployment. Obviously for a serious project, I would set debug to false.
@toddgilbey3979
@toddgilbey3979 4 ай бұрын
@@the_proton_guy🙏👍
@younussaberi8768
@younussaberi8768 4 ай бұрын
I was stucked at the security group part just had to expose 8000 port Thanks for the explanation :)
@the_proton_guy
@the_proton_guy 4 ай бұрын
Glad I could help 🎉
@apoorvachauhan9326
@apoorvachauhan9326 28 күн бұрын
When i disconnect EC2 instance connect, the address stops working. What is the solution to this?
@the_proton_guy
@the_proton_guy 28 күн бұрын
For this, you have to run your server in the background. To do this, run the following command: nohup python manage.py runserver 0.0.0.0:8000 &
@yomi-olashalom248
@yomi-olashalom248 4 ай бұрын
I deployed an e-commerce app, but now I can't see any of the products, how do i fix this?
@the_proton_guy
@the_proton_guy 4 ай бұрын
You can’t see any product? Is your database present?
@LearnincreationIndia
@LearnincreationIndia 7 күн бұрын
How to add custom domain in place of ip:8000
@the_proton_guy
@the_proton_guy 6 күн бұрын
Change dns settings
@josephs8912
@josephs8912 2 ай бұрын
Thank you for this video. i will like to know if the deployment is all for free or it's paid. Thank you once again
@the_proton_guy
@the_proton_guy 2 ай бұрын
If you web app starts using too much resources, you could be charged so it’s important to check it once in a while but for the most part it’s free
@ShazaAsem
@ShazaAsem 2 ай бұрын
how to we push new github update on that??
@the_proton_guy
@the_proton_guy 2 ай бұрын
You’ll need to setup a ci/cd pipeline
@arinzeigwegbe8555
@arinzeigwegbe8555 3 ай бұрын
what are the dependents you install using requirements.txt
@the_proton_guy
@the_proton_guy 3 ай бұрын
What do you mean? The required modules are in the requirements.txt file so we are installing from there
@mujammilmaldar7693
@mujammilmaldar7693 3 ай бұрын
Sir my static files isnt displayed what should i do
@the_proton_guy
@the_proton_guy 3 ай бұрын
Did you make use of whitenoise? In order to make sure static files are displayed, watch the video below where I explain how to set up static files in production: kzfaq.info/get/bejne/hcupqsp-ptild4E.html
@muskankataria2103
@muskankataria2103 5 ай бұрын
Will this also store data in aws only?
@the_proton_guy
@the_proton_guy 5 ай бұрын
Yes you can store your data on aws but you need to create a database, but data also gets saved by default to your SQLlite database in your projects folder.
@vivekkolambe5303
@vivekkolambe5303 6 ай бұрын
I wouldn't be charged right even if i keep the server running
@the_proton_guy
@the_proton_guy 6 ай бұрын
Perhaps
@vivekkolambe5303
@vivekkolambe5303 6 ай бұрын
OK thanks then i must delete the instance ig
@the_proton_guy
@the_proton_guy 6 ай бұрын
@vivekkolambe5303 yes, you should
@vivekkolambe5303
@vivekkolambe5303 6 ай бұрын
Ans what about the staticfiles ?
@the_proton_guy
@the_proton_guy 6 ай бұрын
Check this video out where I explain how to serve Django websites in production: kzfaq.info/get/bejne/hcupqsp-ptild4E.htmlsi=ijy3_nhglI5xCOTU
@user-vl3pz3ss4g
@user-vl3pz3ss4g Ай бұрын
Please how do i get the requirements
@the_proton_guy
@the_proton_guy Ай бұрын
Requirements file?
@user-wl5vi5cn1s
@user-wl5vi5cn1s 2 ай бұрын
i use windows what i should do ?
@the_proton_guy
@the_proton_guy 2 ай бұрын
You picked a windows os on the EC2 instance?
@user-wl5vi5cn1s
@user-wl5vi5cn1s 2 ай бұрын
​@@the_proton_guy yes but when i connect icouldnt find EC2 Instance Connect there is just Session Manager RDP client EC2 serial console and show this "Connect to your instance i-051622d749498a722 (server1) using any of these options " i really need help its for my final year project please help me
@user-wl5vi5cn1s
@user-wl5vi5cn1s 2 ай бұрын
​@@the_proton_guy yes i did but when i connect i could'nt find EC2 Instance Connect i only find Session Manager RDP client EC2 serial console and there is error message SSM Agent is not online The SSM Agent was unable to connect to a Systems Manager endpoint to register itself with the service. please help me its for my final year project i really need help can i contact you on instagram or ur email please
@owelpatrick5408
@owelpatrick5408 9 ай бұрын
i want it in cicd through github
@the_proton_guy
@the_proton_guy 9 ай бұрын
Coming up today 🫡
@wlqpqpqlqmwnhssisjw6055
@wlqpqpqlqmwnhssisjw6055 2 ай бұрын
where are you from?
@the_proton_guy
@the_proton_guy 2 ай бұрын
Nigeria
@owelpatrick5408
@owelpatrick5408 9 ай бұрын
what you just showed stops the moment you stop running the server. that is not real development
@the_proton_guy
@the_proton_guy 9 ай бұрын
You should have asked instead if there is a way to run it in the background, and yes there is a way
@the_proton_guy
@the_proton_guy 9 ай бұрын
to keep it running, run the following: nohup python3 manage.py runserver 0.0.0.0:8000 & This will emsure that even after you close the tab, your server keeps running
@sundayothniel130
@sundayothniel130 10 ай бұрын
Good evening to you, I would love to contact you. Please how can I contact you?
@the_proton_guy
@the_proton_guy 10 ай бұрын
Good evening! You can send me a message on Instagram. My username is the_proton_guy
@sundayothniel130
@sundayothniel130 10 ай бұрын
@@the_proton_guy I've sent you a message.
@sundayothniel130
@sundayothniel130 10 ай бұрын
@@the_proton_guy big thanks to you,
@vilsek
@vilsek 10 ай бұрын
Bro you are the best ,really much love ❤❤😭😭🫧🫧🫧
@the_proton_guy
@the_proton_guy 10 ай бұрын
Glad I could help 🥳
9 - How to Deploy Django Project To Heroku | Easiest Way! | 2024
17:25
39kgのガリガリが踊る絵文字ダンス/39kg boney emoji dance#dance #ダンス #にんげんっていいな
00:16
💀Skeleton Ninja🥷【にんげんっていいなチャンネル】
Рет қаралды 8 МЛН
Mama vs Son vs Daddy 😭🤣
00:13
DADDYSON SHOW
Рет қаралды 45 МЛН
No empty
00:35
Mamasoboliha
Рет қаралды 9 МЛН
How to Build a REST API With Laravel: PHP Full Course
1:49:26
Envato Tuts+
Рет қаралды 242 М.
Deploy Django on AWS EC2 Beginners Tutorial
34:39
Legion Script
Рет қаралды 7 М.
Deploy a Django web app with Nginx to Amazon EC2
35:26
Cloud With Django
Рет қаралды 40 М.
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
Рет қаралды 125 М.
The 4 best ways to deploy a Django application
7:01
London App Developer
Рет қаралды 116 М.
low battery 🪫
0:10
dednahype
Рет қаралды 1,3 МЛН
Какой ноутбук взять для учёбы? #msi #rtx4090 #laptop #юмор #игровой #apple #shorts
0:18
ОБСЛУЖИЛИ САМЫЙ ГРЯЗНЫЙ ПК
1:00
VA-PC
Рет қаралды 2,5 МЛН
S24 Ultra and IPhone 14 Pro Max telephoto shooting comparison #shorts
0:15
Photographer Army
Рет қаралды 10 МЛН
КРУТОЙ ТЕЛЕФОН
0:16
KINO KAIF
Рет қаралды 6 МЛН
Samsung laughing on iPhone #techbyakram
0:12
Tech by Akram
Рет қаралды 6 МЛН