Deploy a Django Web App to Amazon EC2 Instance | 2024

Поділитися
Вставка
  • Опубліковано 29 лис 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 🥳

  • @pythonN00b665
    @pythonN00b665 8 місяців тому

    Actually worked, Thank you

  • @ManfredBaraka
    @ManfredBaraka 8 місяців тому +1

    Thanks alot bro! this made it easy for me🙏

  • @kaushiq847
    @kaushiq847 2 місяці тому +1

    great video..thanks

  • @LearningSpectrums
    @LearningSpectrums Місяць тому +1

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

  • @erasmocalzadilla8004
    @erasmocalzadilla8004 2 місяці тому

    you helped me a lot

  • @younussaberi8768
    @younussaberi8768 8 місяців тому

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

  • @WebdoxComputerInstituteJal
    @WebdoxComputerInstituteJal 7 місяців тому

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

  • @nishant4171
    @nishant4171 4 місяці тому +1

    Thank You so much!

  • @JoseColonRamirez
    @JoseColonRamirez Рік тому +1

    Thank you. it helped me a lot. Saludos

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

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

  • @austinhomolka
    @austinhomolka 7 місяців тому

    Great video brother. Thank you.

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

  • @yomi-olashalom248
    @yomi-olashalom248 8 місяців тому +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  8 місяців тому

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

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

  • @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:
      ua-cam.com/video/OeywgMArAGM/v-deo.html

  • @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:
      ua-cam.com/video/OeywgMArAGM/v-deo.htmlsi=ijy3_nhglI5xCOTU

  • @AdeleyeAdeola-r2b
    @AdeleyeAdeola-r2b 5 місяців тому

    Please how do i get the requirements

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

  • @owelpatrick5408
    @owelpatrick5408 Рік тому +1

    i want it in cicd through github

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