Deploy Django Website Using AWS EC2 Instance (Easiest Way)

  Рет қаралды 49,650

Sai Prakash Reddy

Sai Prakash Reddy

4 жыл бұрын

Please consider Subscribing to the Channel for awesome tutorials and CS stuff.
Deploy Django Website Using AWS EC2 Instance (Easiest Way)
This is a follow up of my previous Video where I have demonstrated how to Deploy Machine learning Models as the Django website.
In this video, we are going to take this Django website and Deploy it on the internet using AWS cloud service Ec2 in a very easy method.
try this playlist: • Playlist
Previous Video :
Deploy Machine Learning Model Using Django Framework :
• Deploy Machine Learnin...
Profiles :
LinkedIn: / saiprakash14
Twitter : / aseptemberguy
GitHub : github.com/Saiprakashreddy14
A like and Subscribe to the channel is appreciated.
#aws #django #python #coding #machinelearning #ai #webdevelopment

Пікірлер: 145
@HammadAli-bf6vl
@HammadAli-bf6vl 3 жыл бұрын
Thanks Bro, You saved my Day. Really Apricate
@SaiprakashReddy
@SaiprakashReddy 3 жыл бұрын
Glad to hear that 🤗
@uzqat
@uzqat Жыл бұрын
Thank you brother. Indeed the easiest method. All the best
@Namnoh
@Namnoh Жыл бұрын
You'r amazing! Thanks a lot
@kummarinaresh3727
@kummarinaresh3727 2 жыл бұрын
Nice explained, keep go on
@barnikbh
@barnikbh 3 жыл бұрын
I couldn't stop laughing once you said "If you're brave enough you can use internet explorer! xD "
@SaiprakashReddy
@SaiprakashReddy 3 жыл бұрын
Lol.. 😂😂😂 someone found the joke finally . Thanks Barnik .
@chavasaiteja8412
@chavasaiteja8412 Жыл бұрын
Hi Sai - This is really an amazing video. Never thought I would be able to crack it so easily. You have literally saved my 10-15 hours of time. Thank you so much.
@SaiprakashReddy
@SaiprakashReddy Жыл бұрын
Glad I could help , thanks for taking time to comment
@mubik
@mubik 2 жыл бұрын
Thanks for making this video, It saved a lot of time for a beginner like me who is doing first-time python and AWS.
@SaiprakashReddy
@SaiprakashReddy 2 жыл бұрын
Thanks for taking time to comment , comments like these makes it so satisfying and encouraging to put out some good content.
@MacaireAlexander
@MacaireAlexander 2 жыл бұрын
Kudos. Simplest deploy I’ve seen
@cheryltan7488
@cheryltan7488 2 жыл бұрын
Thank you for making this guide! super helpful and works perfectly
@blossomacademy7709
@blossomacademy7709 3 жыл бұрын
Bro great video. This is the best video I don't even need to waste my time on another video I just watched your video and I did it!!! Thank You Soo Much For The Great Video!!!!!!!!!!!!!!!!!!
@SaiprakashReddy
@SaiprakashReddy 3 жыл бұрын
Glad you enjoyed it!
@kelseylynzimmer
@kelseylynzimmer 3 жыл бұрын
Thank you so much! My site is up! You are super easy to follow along with! It's a little broken but I think that has to do with my code XD
@SaiprakashReddy
@SaiprakashReddy 3 жыл бұрын
Glad I could help 🙂
@shreyashtech8556
@shreyashtech8556 Жыл бұрын
thanx dude, saved my day
@devpala
@devpala Жыл бұрын
Your tutorial was really really helpful and easy to follow. Thank you very much for your efforts.
@stringconsultants2645
@stringconsultants2645 3 жыл бұрын
thanks bro i try to deploy django and followup step by step in your video and it's really work thank you bro
@SaiprakashReddy
@SaiprakashReddy 3 жыл бұрын
Glad I could help ☺️ Thanks for sharing your experience
@sahilgarg94
@sahilgarg94 2 жыл бұрын
Crisp and clear...... Thanks bro...
@gowthamns8228
@gowthamns8228 3 жыл бұрын
Deploying in Windows no need to configure gunicorn or uwsgi and ngnix server ?
@felipevilelafrancisco2249
@felipevilelafrancisco2249 2 жыл бұрын
Thanks a lot for this video. Saved my holiday.
@SaiprakashReddy
@SaiprakashReddy 2 жыл бұрын
Glad to know it helped ☺️.
@SK-xv2qr
@SK-xv2qr 2 жыл бұрын
Excellent video! Solved my problem.
@The-analyst
@The-analyst 3 жыл бұрын
Thanks ! I launched my website on linux instance. However, the idea was very helpful.
@SaiprakashReddy
@SaiprakashReddy 3 жыл бұрын
Good to hear 😊
@felixortega3178
@felixortega3178 2 жыл бұрын
Hi, do you have the steps for deploy it? I can make works it :/
@PrAsHaNtHdUke1093
@PrAsHaNtHdUke1093 2 жыл бұрын
Thanks a lot bro, i was clearly understand..upload more videos like this....😀😀
@SaiprakashReddy
@SaiprakashReddy 2 жыл бұрын
Glad to hear that
@wthgvalo
@wthgvalo 4 жыл бұрын
Great video bro 👌👌👌👌👍👍
@datascienceandaiconcepts5435
@datascienceandaiconcepts5435 3 жыл бұрын
nice work, continue
@zixosoft5773
@zixosoft5773 2 жыл бұрын
awesome very helpful video
@gerardcrepin2540
@gerardcrepin2540 2 жыл бұрын
Thanks for the video!! Please i would like to know how to set up my static files to be founded while loading the pages. Seems like it needs some additionnal configurations. Note: i've made the collectstatic in the project and set it correctly in the project.
@agungkurniawan7044
@agungkurniawan7044 2 жыл бұрын
awesome, you are my hero bro!!!
@SaiprakashReddy
@SaiprakashReddy 2 жыл бұрын
☺️
@tshephorephusmotala7627
@tshephorephusmotala7627 2 жыл бұрын
Thanks Sai You saved my ass really appreciate your work and i subscribed to your channel for toturials
@vikastripathiindia
@vikastripathiindia 2 жыл бұрын
Thanks the video. Too good!
@SaiprakashReddy
@SaiprakashReddy 2 жыл бұрын
Thanks for kind words . Glad to know you liked it ,
@pinkyyadav7701
@pinkyyadav7701 3 жыл бұрын
Thanks for the tutorial
@shubhamkardam3240
@shubhamkardam3240 3 жыл бұрын
Thanks bro , it was very helpful , god video
@SaiprakashReddy
@SaiprakashReddy 3 жыл бұрын
Glad it helped
@mayanktripathi4u
@mayanktripathi4u 3 жыл бұрын
Hi Sai, for Production it is not recommended to use Django's default server, could you please share what options we do have to keep running our app without any downtim.
@SaiprakashReddy
@SaiprakashReddy 3 жыл бұрын
Sir can we connect on LinkedIn DM we could discuss indepth about this 😁
@jehovahmbote3048
@jehovahmbote3048 2 жыл бұрын
Thanks for this video I would just like to know if it is possible to resell AWS hosting
@MikeNapoli735
@MikeNapoli735 3 жыл бұрын
Nice video!!! :)
@maliexmix3246
@maliexmix3246 3 жыл бұрын
Thanks a lot, boss was really helpful
@SaiprakashReddy
@SaiprakashReddy 3 жыл бұрын
Glad it helped
@rohittate6489
@rohittate6489 2 жыл бұрын
Hey Sai Prakash Your Video is really awesome, and clears everything. But When I am running my wesite my static image files are not visible on web site but same are visible on localhost so please guide me.
@sandypearls5276
@sandypearls5276 3 жыл бұрын
Good video!
@sau3334
@sau3334 3 жыл бұрын
Nice informative video
@nahomberhe9640
@nahomberhe9640 2 жыл бұрын
thank you sai!
@SaiprakashReddy
@SaiprakashReddy 2 жыл бұрын
You're welcome 😊
@MMKhan-tk4ir
@MMKhan-tk4ir 3 жыл бұрын
Why we are using remote desktop connection? Is it from aws?
@saumyashah6622
@saumyashah6622 3 жыл бұрын
If we want to route through the multiple pages in our website, do we need to type ipaddress/routename ?
@SaiprakashReddy
@SaiprakashReddy 3 жыл бұрын
Yes
@enricosaccheggiani3192
@enricosaccheggiani3192 3 жыл бұрын
Hello , I have seen the video . It's very iinteresting, do you have a github repository with a basic model with a Django application , a docker compose file and a database to deploy in aws ? thanks a lot
@ravishkachandimal
@ravishkachandimal 2 жыл бұрын
thank you brother
@thebambooflute4870
@thebambooflute4870 3 жыл бұрын
You are the best
@SaiprakashReddy
@SaiprakashReddy 3 жыл бұрын
Thank you 😊
@anandhakumar8898
@anandhakumar8898 2 жыл бұрын
Bro.. Last time it ran on aws server.. After when i installed requirements for another lroject in same instance the new one is not running as well as first project also not running
@codinghustle5484
@codinghustle5484 3 жыл бұрын
Bro my static files are not loading. Do you have any idea what might be the issue?
@besm_a
@besm_a 3 жыл бұрын
thank you!
@utkarshkhare9175
@utkarshkhare9175 2 жыл бұрын
Hello sai want if I want to run my server on https port instead of http (80). I have already configured ssl for my instance but the problem is everytime I have to add one s in http by default it runs on http only. How can I tackle this this please respond me.
@furkhanmehdi6405
@furkhanmehdi6405 3 жыл бұрын
Thanks brother
@HelloWorld-hr5te
@HelloWorld-hr5te 2 жыл бұрын
How would I apply custom domain to django site deployed on ec2?
@SaiKiran-kd6cq
@SaiKiran-kd6cq 3 жыл бұрын
Video is great .Wanted to know if it does cover in the AWS free trail .??? Obviously i would be using T2 Micro but except that ?
@SaiprakashReddy
@SaiprakashReddy 3 жыл бұрын
Hey kiran , Theoretically it should be covered under the free tier if you use services that are eligible for free tier , but I suggest to be very careful while experimenting , one day you might get a huge bill because you might have forget stop an instance . ( Been there 😅)
@SaiKiran-kd6cq
@SaiKiran-kd6cq 3 жыл бұрын
@@SaiprakashReddy Thanks. Yes ,will be very careful while experimenting 😀
@sriram9786
@sriram9786 3 жыл бұрын
I am gonna launch thanks for the tutorial if I encounter any errors how shall I contact you? Thanks waiting for the reply Also tell how to use databases and s3 buckets for static files
@hopelearning623
@hopelearning623 2 жыл бұрын
Front worked. While I am submitting its show the server error 500. Kindly guide me to sort out this
@oguzgun8702
@oguzgun8702 2 жыл бұрын
sir this is so cool... but can you help me on getting, connection timed out error pls?
@thobicajayamala6595
@thobicajayamala6595 3 жыл бұрын
Please help me I'm getting error could not connect to server : connection refused(0x0000274D/10061) is the server running on host "localhost" (127.0.0.1) and accepting TCP/IP connections on port 5432?
@abdullahrafi9852
@abdullahrafi9852 3 жыл бұрын
Good and very easy video
@SaiprakashReddy
@SaiprakashReddy 3 жыл бұрын
Thanks a lot
@reapergrim5324
@reapergrim5324 3 жыл бұрын
Hey instead of zip , may be install git bash on ec2 windows and git clone your django project
@SaiprakashReddy
@SaiprakashReddy 3 жыл бұрын
Anything that ports our source code to the EC2 can be done .... Found zip to be the fastest but git can be done ✅
@ifmacinema
@ifmacinema 3 жыл бұрын
Hi Sai, so the applications runs fine, however there is always a downtime I think every few hours , does it have anything to do with the free tier ?
@SaiprakashReddy
@SaiprakashReddy 3 жыл бұрын
Hey , So the tutorial is intended for a deployment beginner level projects , hackathon projects , sample poc etc in a quick manner. If we need to professional site we have configure a content delivery systems like ngnix etc , for max availability and security . Also there is only so much that free tier can offer , have to scale according to the traffic .
@divyasree6885
@divyasree6885 3 жыл бұрын
Thank You very Much project has deployed :). but Styles didn't apply for the whole project including the admin page. Could u please guide me.
@akhildwivedi2729
@akhildwivedi2729 2 жыл бұрын
I think you have missed whitenoise or gunicorn , and use its middlewares.
@JuanMorales-tm3dj
@JuanMorales-tm3dj 2 жыл бұрын
if I want to make changes to my web app, I just need to edit to files?
@SaiprakashReddy
@SaiprakashReddy 2 жыл бұрын
Yes
@jseh_
@jseh_ 3 жыл бұрын
works for me
@felixortega3178
@felixortega3178 2 жыл бұрын
but if you close the RDP the sites going down! -__- and the static files doen't load
@PritpalSingh-kz6kt
@PritpalSingh-kz6kt 3 жыл бұрын
If you stop server from background then will this ip port work?? Can you access your website anytime without running your background server???
@SaiprakashReddy
@SaiprakashReddy 3 жыл бұрын
No . Without server the website will be down .
@rushabhgediya290
@rushabhgediya290 3 жыл бұрын
How can I upload on server my django website postgresql database data..?
@SaiprakashReddy
@SaiprakashReddy 3 жыл бұрын
You can follow the similar approach , instead of SQL database you install a postgresql client on ec2 instance . I will try n make a tutorial of the same
@harshwardhanpatil361
@harshwardhanpatil361 3 жыл бұрын
@@SaiprakashReddy i also have same issue can you please make a video about it🙏.
@TheMrGreenMoney
@TheMrGreenMoney 3 жыл бұрын
why some people use linux in the process, is there a difference or something?
@SaiprakashReddy
@SaiprakashReddy 3 жыл бұрын
Great Question . Yes Many prefer linux instanses to deploy their projects and thats the industry standard because of the reliability of linux . But Since Both of them are managed by AWS, this wont make much differences in terms of reliability and performance .
@mf00085
@mf00085 2 жыл бұрын
Thank you for the video! How can I deploy this to port 443. I need my app to run on https
@SaiprakashReddy
@SaiprakashReddy 2 жыл бұрын
This can be done from django settings , you can run it on the desired port
@Faizannn.400
@Faizannn.400 Жыл бұрын
my static files are not loading while rendering , can u explain why?
@SaiprakashReddy
@SaiprakashReddy Жыл бұрын
Static files need to setup in a certain way , this can be tricky in django. I suggest going through documentation for this
@benonyegilson9129
@benonyegilson9129 Жыл бұрын
I can't connect using the rdp and I have been trying to fix it :/
@pie937
@pie937 Жыл бұрын
Will aws bill cash for our usage?
@SaiprakashReddy
@SaiprakashReddy Жыл бұрын
Yes , if you go above the free limits you will be billed .
@ejanshrestha9504
@ejanshrestha9504 2 жыл бұрын
can you please create a stock forecast wep app using lstm in django full tutorial using csv data ???
@SaiprakashReddy
@SaiprakashReddy 2 жыл бұрын
I could , but its whole project in itself and this can be done as a 3-4 days bootcamp rather than a youtube tutorial . You can build it yourselves , Django has good documentation for the web , also you can find stock forecasting APIs and Prebuilt models and projects (if you look for it ) .
@ejanshrestha9504
@ejanshrestha9504 2 жыл бұрын
@@SaiprakashReddy i am facing difficulty while implementing in django brother i could be help to us for college programs . You can just create it by using csv data no api needed
@meganova609
@meganova609 Жыл бұрын
vro please tell how to change ip address to a domain
@shivamrohilla208
@shivamrohilla208 Жыл бұрын
where is the domain connection video on aws ??
@yagsogfood3600
@yagsogfood3600 3 жыл бұрын
my static files are not being uploaded. How do you do it?
@SaiprakashReddy
@SaiprakashReddy 3 жыл бұрын
Hey dealing with static files can be bit confusing in the beginning. Django has best documentation of how to set static files. highly suggest you to go through it. 😊
@vighneshnadar2662
@vighneshnadar2662 3 жыл бұрын
its quite simple use aws s3 if you are in your free trial
@akashbhadane7040
@akashbhadane7040 3 жыл бұрын
Sir I m facing one problem if i made multiple request then it takes only the last request and respons, I want tht it should take every request as separate and provide response separately Can U help sir?
@SaiprakashReddy
@SaiprakashReddy 3 жыл бұрын
hello akash , I understood your use case , for handling multiple requests we need to serve the app using the servers like apache , ngnix etc .. I found this blog which will help you in this regard medium.com/saarthi-ai/ec2apachedjango-838e3f6014ab . Have a look
@akashbhadane7040
@akashbhadane7040 3 жыл бұрын
@@SaiprakashReddy ohk I'll try and thank U...
@prasadg7777
@prasadg7777 2 жыл бұрын
can you make a video on "Assigning Domain Names to an IP Address"
@SaiprakashReddy
@SaiprakashReddy 2 жыл бұрын
Hi Prasad , I currently don't own any domains as of now , It is fairly straightforward to task . You can find some blogs on medium etc for the same
@pazhanilathu
@pazhanilathu 3 жыл бұрын
css files and images are not loading
@rahulnaik9847
@rahulnaik9847 3 жыл бұрын
Can we install xamp or any other similar application on this?
@SaiprakashReddy
@SaiprakashReddy 3 жыл бұрын
Why not ... you have entire windows instance for you .... Should not be a problem .
@rahulnaik9847
@rahulnaik9847 3 жыл бұрын
@@SaiprakashReddy that also means i don't need RDS right?
@SaiprakashReddy
@SaiprakashReddy 3 жыл бұрын
@@rahulnaik9847 hey rahul , I am not sure about that so i cannot provide you a comment but , you can do all things that we do on the local machine on the EC2 instance
@rahulnaik9847
@rahulnaik9847 3 жыл бұрын
@@SaiprakashReddy Ok no. Thanks a lot but this helped a lot
@usamamalik777
@usamamalik777 2 жыл бұрын
Hi! Bro i am doing your car rental project course on udemy i am stuck at some position can you provide the source code of that project.
@SaiprakashReddy
@SaiprakashReddy 2 жыл бұрын
I don't have any courses on udemy
@AnubhavMadhav
@AnubhavMadhav 3 жыл бұрын
Hey Sai! I followed all the steps, still it's showing that "The site can't be reached". Please help!
@SaiprakashReddy
@SaiprakashReddy 3 жыл бұрын
Can you elaborate the details via email
@AnubhavMadhav
@AnubhavMadhav 3 жыл бұрын
@@SaiprakashReddy It's done now. But I want to ask one thing, that my web app fetches the data from API, converts into JSON and then sends email to users but sometimes it returns a JSON Decode Error and sometimes not. How can I solve this?
@SaiprakashReddy
@SaiprakashReddy 3 жыл бұрын
I think I have seen a post from you on LinkedIn this is regarding the cowin app if I am not wrong , the error may be due to the improper responses from the cowin API , have you tried to handle the errors with a try catch mechanism?
@AnubhavMadhav
@AnubhavMadhav 3 жыл бұрын
@@SaiprakashReddy Yes, it's regarding the same. I'll do that now 👍 Thank you 😊
@rollin848
@rollin848 3 жыл бұрын
website is running but css,html components are not rendering pls help
@SaiprakashReddy
@SaiprakashReddy 3 жыл бұрын
Hey Rollin , Glad that you were able to run the website , it is difficult to debug without actually having the code , I advise you to go through the tutorial couple of times , check whether templates and views are configured properly . If the problem persists you can reach out to me at my email
@thobicajayamala6595
@thobicajayamala6595 3 жыл бұрын
I'm also facing the same issue please help me..
@pratap.chavan
@pratap.chavan 2 жыл бұрын
Hi, Lovely video! Thanks for sharing info. Could help me with understanding how to deploy a django backend + Angular front end website on production server? using any free tool eg. IIS ? Open for anyone in the comment section also to contribute
@SaiprakashReddy
@SaiprakashReddy 2 жыл бұрын
You can use heroku for this , checkout my latest video on cicd
@hapyness
@hapyness 2 жыл бұрын
Thanks for the video Tip: use virtual env for running server instead of direct python: use this commands after the step of installing python pip install virtualenvwrapper-win python -m venv env env\scripts\activate python manage.py runserver
@NotSoFunnyError
@NotSoFunnyError 2 жыл бұрын
I was brave to use IE
@cristobalpalaciossilva4017
@cristobalpalaciossilva4017 Жыл бұрын
no se llama
@leminos6119
@leminos6119 3 жыл бұрын
Pro Tip - Do not turn DEBUG off otherwise your static files will not be detected unless hosted on s3 bucket or similar alternative
@SaiprakashReddy
@SaiprakashReddy 3 жыл бұрын
Keeping the debugging on opens up to many security flaws like SQL injection etc and its not a good idea to show debug info to the end user .
@leminos6119
@leminos6119 3 жыл бұрын
@@SaiprakashReddy I mean it's fine if you are not seriously going to use the website and are just practicing and stuff
@Namnoh
@Namnoh Жыл бұрын
@LemiNos Thanks for that bro, you saved me
@letsgoletsgo5081
@letsgoletsgo5081 3 жыл бұрын
Is EC2 free??
@SaiprakashReddy
@SaiprakashReddy 3 жыл бұрын
It depends on your usage , I suggest to have a look at aws pricing page
Deploy a Django web app with Nginx to Amazon EC2
35:26
Cloud With Django
Рет қаралды 39 М.
아이스크림으로 체감되는 요즘 물가
00:16
진영민yeongmin
Рет қаралды 59 МЛН
ОСКАР vs БАДАБУМЧИК БОЙ!  УВЕЗЛИ на СКОРОЙ!
13:45
Бадабумчик
Рет қаралды 6 МЛН
Deploy Django on AWS EC2 Beginners Tutorial
34:39
Legion Script
Рет қаралды 7 М.
How to deploy a Node Express API to AWS EC2 instance
18:17
JonathanSanchez
Рет қаралды 54 М.
Deploy a Django Web App to Amazon EC2 Instance  | 2024
16:26
THE PROTON GUY
Рет қаралды 10 М.
Tutorial 4- Deployment Of ML Models In AWS EC2 Instance
20:26
Krish Naik
Рет қаралды 113 М.
Nginx Reverse Proxy | Django Deployment | Docker | Staticfiles
56:46
AWS SQS vs SNS vs EventBridge - When to Use What?
22:37
Be A Better Dev
Рет қаралды 169 М.
Нажимай выше ☝️☝️☝️ #а4 #глент #риви #viral
0:25
Как меняются люди
Рет қаралды 2,4 МЛН
покупки за продуктами сейчас вс раньше
0:23
Эффект Карбонаро и нестандартная коробка
1:00
История одного вокалиста
Рет қаралды 9 МЛН
え、、、!
0:11
美好秋人
Рет қаралды 13 МЛН
tom and Jerry 😱🆕 #trending
0:23
Nemi Shorts
Рет қаралды 19 МЛН