Deploy a Django Web App to Amazon EC2 Instance | 2024

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

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

  • @alphonsekaman4114
    @alphonsekaman4114 2 месяца назад +2

    Thanks a lot bro. After days of struggling, I am finally there. 😀

  • @Lifewithade2003
    @Lifewithade2003 Год назад +3

    Wow! This was so helpful

  • @kiraisonline
    @kiraisonline Год назад +2

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

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

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

      Thank you 🥳

  • @ManfredBaraka
    @ManfredBaraka 8 месяцев назад +1

    Thanks alot bro! this made it easy for me🙏

  • @LearningSpectrums
    @LearningSpectrums Месяц назад +1

    Thank you for this video, i will like to know if this method still work... thank you once again.

  • @pythonN00b665
    @pythonN00b665 8 месяцев назад

    Actually worked, Thank you

  • @younussaberi8768
    @younussaberi8768 7 месяцев назад

    I was stucked at the security group part
    just had to expose 8000 port
    Thanks for the explanation :)

  • @kaushiq847
    @kaushiq847 2 месяца назад +1

    great video..thanks

  • @erasmocalzadilla8004
    @erasmocalzadilla8004 Месяц назад

    you helped me a lot

  • @WebdoxComputerInstituteJal
    @WebdoxComputerInstituteJal 6 месяцев назад

    Why you haven't exposed port 80 and 443 for proper deployment?

  • @Priya-lf5vw
    @Priya-lf5vw 9 месяцев назад

    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?

  • @toddgilbey3979
    @toddgilbey3979 8 месяцев назад +1

    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  8 месяцев назад

      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 8 месяцев назад

      @@the_proton_guy🙏👍

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

    Thank you. it helped me a lot. Saludos

  • @austinhomolka
    @austinhomolka 7 месяцев назад

    Great video brother. Thank you.

  • @nishant4171
    @nishant4171 4 месяца назад +1

    Thank You so much!

  • @yomi-olashalom248
    @yomi-olashalom248 7 месяцев назад +1

    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  7 месяцев назад

      You can’t see any product? Is your database present?

  • @apoorvachauhan9326
    @apoorvachauhan9326 4 месяца назад +1

    When i disconnect EC2 instance connect, the address stops working. What is the solution to this?

    • @the_proton_guy
      @the_proton_guy  4 месяца назад

      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 &

  • @LearnincreationIndia
    @LearnincreationIndia 4 месяца назад +1

    How to add custom domain in place of ip:8000

  • @mujammilmaldar7693
    @mujammilmaldar7693 7 месяцев назад +1

    Sir my static files isnt displayed what should i do

    • @the_proton_guy
      @the_proton_guy  7 месяцев назад +1

      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:
      ruclips.net/video/OeywgMArAGM/видео.html

  • @ShazaAsem
    @ShazaAsem 6 месяцев назад +1

    how to we push new github update on that??

    • @the_proton_guy
      @the_proton_guy  6 месяцев назад

      You’ll need to setup a ci/cd pipeline

  • @arinzeigwegbe8555
    @arinzeigwegbe8555 7 месяцев назад

    what are the dependents you install using requirements.txt

    • @the_proton_guy
      @the_proton_guy  7 месяцев назад

      What do you mean? The required modules are in the requirements.txt file so we are installing from there

  • @vivekkolambe5303
    @vivekkolambe5303 10 месяцев назад +1

    I wouldn't be charged right even if i keep the server running

  • @vivekkolambe5303
    @vivekkolambe5303 10 месяцев назад +1

    Ans what about the staticfiles ?

    • @the_proton_guy
      @the_proton_guy  10 месяцев назад

      Check this video out where I explain how to serve Django websites in production:
      ruclips.net/video/OeywgMArAGM/видео.htmlsi=ijy3_nhglI5xCOTU

  • @AdeleyeAdeola-r2b
    @AdeleyeAdeola-r2b 5 месяцев назад

    Please how do i get the requirements

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

    i want it in cicd through github

  • @muskankataria2103
    @muskankataria2103 9 месяцев назад

    Will this also store data in aws only?

    • @the_proton_guy
      @the_proton_guy  9 месяцев назад +1

      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.

  • @InesDahoumane
    @InesDahoumane 6 месяцев назад

    i use windows what i should do ?

    • @the_proton_guy
      @the_proton_guy  6 месяцев назад

      You picked a windows os on the EC2 instance?

    • @InesDahoumane
      @InesDahoumane 6 месяцев назад

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

    • @InesDahoumane
      @InesDahoumane 6 месяцев назад

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

  • @wlqpqpqlqmwnhssisjw6055
    @wlqpqpqlqmwnhssisjw6055 6 месяцев назад

    where are you from?

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

    what you just showed stops the moment you stop running the server. that is not real development

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

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

      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

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

    Bro you are the best ,really much love ❤❤😭😭🫧🫧🫧

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

    Good evening to you, I would love to contact you. Please how can I contact you?

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

      Good evening! You can send me a message on Instagram. My username is the_proton_guy

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

      @@the_proton_guy I've sent you a message.

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

      @@the_proton_guy big thanks to you,