Deploy Django Website Using AWS EC2 Instance (Easiest Way)

Поделиться
HTML-код
  • Опубликовано: 27 дек 2024

Комментарии • 145

  • @HammadAli-bf6vl
    @HammadAli-bf6vl 4 года назад +12

    Thanks Bro, You saved my Day. Really Apricate

  • @uzqat
    @uzqat 2 года назад +1

    Thank you brother. Indeed the easiest method. All the best

  • @chavasaiteja8412
    @chavasaiteja8412 2 года назад +1

    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  2 года назад

      Glad I could help , thanks for taking time to comment

  • @barnikbh
    @barnikbh 3 года назад +13

    I couldn't stop laughing once you said "If you're brave enough you can use internet explorer! xD "

    • @SaiprakashReddy
      @SaiprakashReddy  3 года назад +3

      Lol.. 😂😂😂 someone found the joke finally . Thanks Barnik .

  • @zixosoft5773
    @zixosoft5773 2 года назад +1

    awesome very helpful video

  • @shreyashtech8556
    @shreyashtech8556 Год назад +1

    thanx dude, saved my day

  • @Namnoh
    @Namnoh 2 года назад +1

    You'r amazing! Thanks a lot

  • @stringconsultants2645
    @stringconsultants2645 3 года назад +2

    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

  • @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!!!!!!!!!!!!!!!!!!

  • @kummarinaresh3727
    @kummarinaresh3727 2 года назад

    Nice explained, keep go on

  • @The-analyst
    @The-analyst 4 года назад +7

    Thanks ! I launched my website on linux instance. However, the idea was very helpful.

  • @PrAsHaNtHdUke1093
    @PrAsHaNtHdUke1093 2 года назад

    Thanks a lot bro, i was clearly understand..upload more videos like this....😀😀

  • @gowthamns8228
    @gowthamns8228 4 года назад +2

    Deploying in Windows no need to configure gunicorn or uwsgi and ngnix server ?

  • @MMKhan-tk4ir
    @MMKhan-tk4ir 3 года назад +1

    Why we are using remote desktop connection? Is it from aws?

  • @hopelearning623
    @hopelearning623 2 года назад

    Front worked. While I am submitting its show the server error 500. Kindly guide me to sort out this

  • @mubik
    @mubik 2 года назад +1

    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

  • @devpala
    @devpala 2 года назад

    Your tutorial was really really helpful and easy to follow. Thank you very much for your efforts.

  • @felipevilelafrancisco2249
    @felipevilelafrancisco2249 3 года назад

    Thanks a lot for this video. Saved my holiday.

  • @saumyashah6622
    @saumyashah6622 4 года назад +3

    If we want to route through the multiple pages in our website, do we need to type ipaddress/routename ?

  • @SK-xv2qr
    @SK-xv2qr 2 года назад

    Excellent video! Solved my problem.

  • @anandhakumar8898
    @anandhakumar8898 3 года назад

    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

  • @sahilgarg94
    @sahilgarg94 2 года назад

    Crisp and clear...... Thanks bro...

  • @jehovahmbote3048
    @jehovahmbote3048 2 года назад

    Thanks for this video
    I would just like to know if it is possible to resell AWS hosting

  • @felixortega3178
    @felixortega3178 2 года назад

    but if you close the RDP the sites going down! -__- and the static files doen't load

  • @mayanktripathi4u
    @mayanktripathi4u 4 года назад +4

    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  4 года назад +1

      Sir can we connect on LinkedIn DM
      we could discuss indepth about this 😁

  • @HelloWorld-hr5te
    @HelloWorld-hr5te 3 года назад

    How would I apply custom domain to django site deployed on ec2?

  • @TheMrGreenMoney
    @TheMrGreenMoney 3 года назад +1

    why some people use linux in the process, is there a difference or something?

    • @SaiprakashReddy
      @SaiprakashReddy  3 года назад +1

      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 .

  • @agungkurniawan7044
    @agungkurniawan7044 3 года назад

    awesome, you are my hero bro!!!

  • @yagsogfood3600
    @yagsogfood3600 4 года назад +2

    my static files are not being uploaded. How do you do it?

    • @SaiprakashReddy
      @SaiprakashReddy  4 года назад

      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 4 года назад

      its quite simple use aws s3
      if you are in your free trial

  • @benonyegilson9129
    @benonyegilson9129 Год назад

    I can't connect using the rdp and I have been trying to fix it :/

  • @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?

  • @akashbhadane7040
    @akashbhadane7040 3 года назад +1

    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 года назад +1

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

  • @vikastripathiindia
    @vikastripathiindia 2 года назад +1

    Thanks the video. Too good!

    • @SaiprakashReddy
      @SaiprakashReddy  2 года назад

      Thanks for kind words . Glad to know you liked it ,

  • @Faizannn.400
    @Faizannn.400 2 года назад

    my static files are not loading while rendering , can u explain why?

    • @SaiprakashReddy
      @SaiprakashReddy  2 года назад

      Static files need to setup in a certain way , this can be tricky in django. I suggest going through documentation for this

  • @utkarshkhare9175
    @utkarshkhare9175 3 года назад

    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.

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

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

  • @shivamrohilla208
    @shivamrohilla208 Год назад

    where is the domain connection video on aws ??

  • @JuanMorales-tm3dj
    @JuanMorales-tm3dj 3 года назад

    if I want to make changes to my web app, I just need to edit to files?

  • @tshephorephusmotala7627
    @tshephorephusmotala7627 3 года назад

    Thanks Sai You saved my ass really appreciate your work and i subscribed to your channel for toturials

  • @BhatiJhabarSingh
    @BhatiJhabarSingh 3 года назад

    Bro my static files are not loading. Do you have any idea what might be the issue?

  • @kelseylynzimmer
    @kelseylynzimmer 4 года назад +2

    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

  • @rushabhgediya290
    @rushabhgediya290 4 года назад +1

    How can I upload on server my django website postgresql database data..?

    • @SaiprakashReddy
      @SaiprakashReddy  4 года назад +1

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

  • @shubhamkardam3240
    @shubhamkardam3240 3 года назад

    Thanks bro , it was very helpful , god video

  • @Alesiatour
    @Alesiatour 3 года назад

    sir this is so cool... but can you help me on getting, connection timed out error pls?

  • @nahomberhe9640
    @nahomberhe9640 3 года назад

    thank you sai!

  • @MikeNapoli735
    @MikeNapoli735 3 года назад +2

    Nice video!!! :)

  • @cheryltan7488
    @cheryltan7488 2 года назад

    Thank you for making this guide! super helpful and works perfectly

  • @pazhanilathu
    @pazhanilathu 3 года назад

    css files and images are not loading

  • @AnubhavMadhav
    @AnubhavMadhav 3 года назад +1

    Hey Sai! I followed all the steps, still it's showing that "The site can't be reached". Please help!

    • @SaiprakashReddy
      @SaiprakashReddy  3 года назад +1

      Can you elaborate the details via email

    • @AnubhavMadhav
      @AnubhavMadhav 3 года назад +2

      @@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 года назад +1

      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 😊

  • @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 года назад +2

      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 😀

  • @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 года назад +1

      No . Without server the website will be down .

  • @ejanshrestha9504
    @ejanshrestha9504 3 года назад

    can you please create a stock forecast wep app using lstm in django full tutorial using csv data ???

    • @SaiprakashReddy
      @SaiprakashReddy  3 года назад

      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 3 года назад

      @@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 2 года назад

    vro please tell how to change ip address to a domain

  • @thebambooflute4870
    @thebambooflute4870 4 года назад +2

    You are the best

  • @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 ✅

  • @datascienceandaiconcepts5435
    @datascienceandaiconcepts5435 4 года назад +1

    nice work, continue

  • @wthgvalo
    @wthgvalo 4 года назад +1

    Great video bro 👌👌👌👌👍👍

  • @pie937
    @pie937 Год назад

    Will aws bill cash for our usage?

    • @SaiprakashReddy
      @SaiprakashReddy  Год назад

      Yes , if you go above the free limits you will be billed .

  • @sandypearls5276
    @sandypearls5276 3 года назад +1

    Good video!

  • @sau3334
    @sau3334 3 года назад

    Nice informative video

  • @rollin848
    @rollin848 4 года назад

    website is running but css,html components are not rendering pls help

    • @SaiprakashReddy
      @SaiprakashReddy  4 года назад

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

  • @sriram9786
    @sriram9786 4 года назад +4

    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

  • @iamaronee
    @iamaronee 3 года назад

    Good and very easy video

  • @pinkyyadav7701
    @pinkyyadav7701 3 года назад

    Thanks for the tutorial

  • @hapyness
    @hapyness 2 года назад +1

    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

  • @malikdiyaolu
    @malikdiyaolu 3 года назад

    Thanks a lot, boss was really helpful

  • @rahulnaik9847
    @rahulnaik9847 3 года назад

    Can we install xamp or any other similar application on this?

    • @SaiprakashReddy
      @SaiprakashReddy  3 года назад +1

      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 года назад +1

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

  • @prasadg7777
    @prasadg7777 2 года назад

    can you make a video on "Assigning Domain Names to an IP Address"

    • @SaiprakashReddy
      @SaiprakashReddy  2 года назад +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

  • @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 3 года назад

      I think you have missed whitenoise or gunicorn , and use its middlewares.

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

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

  • @mf00085
    @mf00085 3 года назад

    Thank you for the video! How can I deploy this to port 443. I need my app to run on https

    • @SaiprakashReddy
      @SaiprakashReddy  3 года назад

      This can be done from django settings , you can run it on the desired port

  • @jseh_
    @jseh_ 3 года назад +1

    works for me

  • @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

  • @furkhanmehdi6405
    @furkhanmehdi6405 4 года назад +1

    Thanks brother

  • @besm_a
    @besm_a 4 года назад +1

    thank you!

  • @letsgoletsgo5081
    @letsgoletsgo5081 3 года назад +1

    Is EC2 free??

    • @SaiprakashReddy
      @SaiprakashReddy  3 года назад

      It depends on your usage , I suggest to have a look at aws pricing page

  • @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 2 года назад

      @LemiNos Thanks for that bro, you saved me

  • @NotSoFunnyError
    @NotSoFunnyError 3 года назад

    I was brave to use IE

  • @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

  • @cristobalpalaciossilva4017
    @cristobalpalaciossilva4017 2 года назад

    no se llama

  • @ravishkachandimal
    @ravishkachandimal 3 года назад

    thank you brother