Deploy a Django web app on Amazon EC2

Поділитися
Вставка
  • Опубліковано 27 гру 2022
  • Deploy a Django web app on Amazon EC2
    Sample code repository:
    github.com/yeshwanthlm/django...
    💻 | Website:
    www.cloudwithdjango.com/
    🧑‍🏫 | Courses:
    www.cloudwithdjango.com/courses
    📑 | Blog:
    www.cloudwithdjango.com/blog/
    📢 | Coaching:
    / coaching
    ❤️ | Support:
    Patreon - / cloudwithdjango
    PayPal - www.paypal.com/donate/?hosted...
    🎮 | Twitch:
    / stark_coder_

КОМЕНТАРІ • 243

  • @CloudWithDjango
    @CloudWithDjango  Рік тому +15

    Hi everyone,
    If you would like to keep your server up and running after the Ubuntu terminal disconnects. Feel free to check out my other tutorial down below:
    ua-cam.com/video/7O1H9kr1CsA/v-deo.html
    IMPORTANT NOTE:
    Hi all,
    Please note that you will have to setup your static and media files as well - I'd suggest using Amazon S3.
    Here is a tutorial on how to setup Amazon S3:
    ua-cam.com/video/JQVQcNN0cXE/v-deo.html
    You will also have to setup your database as well - I'd recommend using a PostgreSQL database.
    Here is a tutorial on how to setup a PostgreSQL database with Render for FREE:
    ua-cam.com/video/AgTr5mw4zdI/v-deo.html

    • @eduardorpg64
      @eduardorpg64 6 місяців тому +2

      It would be nice if you had included this on the description, but still, thanks. I really needed these additional 3 videos.

    • @jeremy84573
      @jeremy84573 3 місяці тому +1

      Why not just create an entire video that explain everything from A to Z instead of 4 different video ? Still a big thanks for your video ;)

  • @dembashow
    @dembashow Рік тому +11

    This tutorial is just amazing. Thank you man for putting such qualitative, and outstanding content.

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

      Thank you so much, Demba! :)
      It is deeply appreciated! I'm glad that you are enjoying the content.
      Best,
      Arno

  • @varadashtekar117
    @varadashtekar117 6 місяців тому +4

    I can't thank you enough. I have been looking for the solution to deploy website on ec2 for years, yours is the only tutorial that worked. I am thankful to you.

    • @CloudWithDjango
      @CloudWithDjango  6 місяців тому

      It is a great pleasure! Thank you for your comment, I'm glad that it worked for you!

  • @kirteekumari3459
    @kirteekumari3459 11 місяців тому +2

    Thank you so much! I have been looking for ways to deploy a django app but could not find a detailed video like yours. Cheers to you!

    • @CloudWithDjango
      @CloudWithDjango  11 місяців тому +1

      My pleasure! I'm glad to hear that my video was helpful!

  • @arlenebrown5388
    @arlenebrown5388 11 місяців тому +1

    very simple and straightforward. thanks so much! this helped me a lot

    • @CloudWithDjango
      @CloudWithDjango  11 місяців тому +1

      My pleasure! I'm glad that it helped you!

  • @cyber_coding6469
    @cyber_coding6469 Рік тому

    Thank you all worked with me bro. Keep it up !

    • @CloudWithDjango
      @CloudWithDjango  Рік тому

      I'm very glad to hear that Uzbek! Thank you! :)
      And it's a pleasure!

  • @bulelaniquinton7272
    @bulelaniquinton7272 3 місяці тому

    very helpful, right when I just needed this tutorial to deploy my django's assignment

    • @CloudWithDjango
      @CloudWithDjango  3 місяці тому

      Thank you! I'm glad that it was useful to you!

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

    Fantastic work, man! Congrats and thaks a million.

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

      Thank you so much! I appreciate your kind feedback! And of course, my pleasure! :)

  • @elinteerie4395
    @elinteerie4395 11 місяців тому

    Just so much helped me. I'm greatly grateful for this resource

    • @CloudWithDjango
      @CloudWithDjango  11 місяців тому

      I'm so glad that this video was of value to you!
      Good luck to you!

  • @Ahmed-gz7zq
    @Ahmed-gz7zq Рік тому

    very simple, very good instructions, i love your content thank you.

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

      Thank you for your feedback, Ahmed!
      I'm glad that you are enjoying the content!
      It is a pleasure! :)

  • @mehakkathpal5659
    @mehakkathpal5659 10 місяців тому

    very much helpful , clear and concise. Thankyou so much .

    • @CloudWithDjango
      @CloudWithDjango  10 місяців тому

      Thank you for your feedback! It is much appreciated! I'm glad that it helped you!
      Of course, no problem!

  • @martinmiz
    @martinmiz Рік тому

    This is amazing! Thank you very much.

    • @CloudWithDjango
      @CloudWithDjango  Рік тому

      Thank you for your kind words! :)
      It is a great pleasure, Martin!

  • @dodikabeya7854
    @dodikabeya7854 19 днів тому

    Thank you very much for this clear tuto

  • @SatpalSingh-pz9xx
    @SatpalSingh-pz9xx Рік тому

    Really helpful and informative, thank you

    • @CloudWithDjango
      @CloudWithDjango  Рік тому

      My pleasure, Satpal!
      I'm glad that you found the video useful!

  • @anshhmehta
    @anshhmehta 3 місяці тому

    wonderful tutorial, Will surely try it!!

  • @MMsla69
    @MMsla69 Рік тому

    legendary , great ability to explain.

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

    Thank You so much ...great video

    • @CloudWithDjango
      @CloudWithDjango  Рік тому

      My pleasure!
      I'm glad that it was helpful to you! :)

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

    Amazing tutorial Thank you

  • @nirmesh44
    @nirmesh44 Рік тому

    perfect. nicely explained.

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

    Really useful tutorial thank you! I'm a little new to AWS but is there any way to keep the server running without having it open...? It seems that when I close the Ubuntu terminal it disconnects. I'd like to be able to have access to this all the time.
    Thanks for your help!

    • @CloudWithDjango
      @CloudWithDjango  Рік тому +3

      Hi,
      Thank you for reaching out.
      It's a pleasure! I'm glad that the tutorial was of use to you.
      There are many ways to deploy a Django app on EC2. This is just one simple way. For your use case, you need to setup an ec2 instance and deploy your Django app on it with apache/nginx and gunicorn. There should be plenty of articles online that should assist you with the above.
      Good luck!

  • @user-dn4eq4bl2y
    @user-dn4eq4bl2y 3 місяці тому

    thanks, you have very useful content.

    • @CloudWithDjango
      @CloudWithDjango  3 місяці тому

      My pleasure! I'm glad that you enjoyed it!

  • @callergaming2575
    @callergaming2575 4 місяці тому

    Thank you very much for this

  • @sanskargawade7667
    @sanskargawade7667 3 місяці тому +1

    Hi , Nice Tutorial but my static files uploaded , as my css is not loaded ..What should i do ?
    Thank You for great explaination

    • @CloudWithDjango
      @CloudWithDjango  3 місяці тому

      Hi, thank you for your kind words.
      Please refer to the pinned comment. Additional information is provided on static files. Good luck!

  • @MuhammadKhan-ok3hf
    @MuhammadKhan-ok3hf 2 місяці тому

    Outstanding, Thanks

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

      Thank you so much! Glad that it was useful!

  • @MuhammadAyaz-gp7xd
    @MuhammadAyaz-gp7xd 5 місяців тому

    Great Tutorial ❤❤❤

  • @brunonascimento1619
    @brunonascimento1619 Рік тому

    With your video I managed to deploy. thank you, keep making videos like this.
    Now I need to know how to efficiently get updates from the repository to the server. Do you have a video showing how to do this?

    • @CloudWithDjango
      @CloudWithDjango  Рік тому

      Hi,
      My pleasure! Thank you for your feedback.
      Unfortunately, I have nothing like that for now, but thank you for your suggestion. I could possibly look into that in the future, if I'm able.

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

    Good tutorial. Thanks

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

      Thank you! Of course! Glad that it helped!

  • @javiermadriz7834
    @javiermadriz7834 10 місяців тому

    Would be great to do a complete, including web server and static deploy

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

    Thank you for your video. Cloning the GitHub repository of 'yeswanthin' worked for me, and I followed your video to the end. However, in my project, I encountered a problem when I tried to install and set up my requirements.txt using the command 'pip3 install -r requirements.txt' or 'pip install -r requirements.txt'. It seems that the command is not recognized when using EC2 Instance Connect. Could you assist me with this issue? Thank you for your prompt response.

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

      Hi,
      It's a pleasure. So, it seems like your EC2 instance might not have pip installed. You can easily install it by running 'sudo apt-get install python3-pip' or 'sudo yum install python3-pip' depending on your Linux distribution, then retry the 'pip3 install -r requirements.txt' command.

  • @CheckmateChronicles-yr6xj
    @CheckmateChronicles-yr6xj 3 місяці тому

    If I want to use my django app I have to run server first on ubuntu/aws. Is there a way to run server all the time so anybody/anytime could have access to my app?

    • @CloudWithDjango
      @CloudWithDjango  3 місяці тому

      Hi, so to keep your Django app running all the time for anyone to access, you need to set it up on a cloud server like AWS, install Django and its dependencies, configure the app, run a web server, set up a database, ensure security, optionally configure a domain name, and monitor performance.

  • @AnshulJain-op2ih
    @AnshulJain-op2ih 2 місяці тому

    Thank you so much for this video.
    How does AWS Elastic Beanstalk simplify application deployment? Compare AWS Elastic Beanstalk and EC2. In what scenarios would you choose one over the other?

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

      My pleasure.
      Sure thing. AWS Elastic Beanstalk simplifies application deployment by automatically handling the provisioning, scaling, and management of underlying infrastructure, whereas EC2 requires manual setup and configuration of virtual servers, making Elastic Beanstalk preferable for streamlined deployment of web applications with less administrative overhead.

    • @AnshulJain-op2ih
      @AnshulJain-op2ih 2 місяці тому

      @@CloudWithDjango ok, thank you. Is there any video for this on your channel?

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

      No problem. I do offer AWS Elastic Beanstalk content but only as a Udemy course and not on UA-cam.

  • @kylejkong2442
    @kylejkong2442 Рік тому

    couldnt get my app up on neither railway nor heroku. this is a life saver, thank you !
    btw, how to remove the clone from ec2 instance?

    • @CloudWithDjango
      @CloudWithDjango  Рік тому

      Hi,
      You would need to navigate to the main directory and delete it by issuing linux based commands (I'd recommend researching that part)

  • @tulasir1298
    @tulasir1298 Рік тому

    hey the project is working just fine until the last step, in the last step after changing the inbound security settings, the webpage is showing a not secure warning and the to do list site is not being displayed. PLS HELP

    • @maheshsujanani4917
      @maheshsujanani4917 4 місяці тому

      make the https: to http and it should work just fine

  • @davidenriquez1218
    @davidenriquez1218 4 місяці тому

    Failed to connect to your instance
    Error establishing SSH connection to your instance. Try again later., this shows shows while trying to connect to the ec2 linux instance, pls help! thx

    • @CloudWithDjango
      @CloudWithDjango  4 місяці тому

      Hi,
      Please checking the following: Kindly ensure that your EC2 instance is running on the AWS Management Console. Ensure your security group allows inbound SSH traffic on port 22. Check if network ACLs permit inbound and outbound traffic on port 22. Confirm you're using the correct SSH key pair for authentication. Review instance system logs for errors on the EC2 dashboard. Check system logs within the instance for errors. Ping the instance's public IP address to ensure accessibility. Restart the instance from the EC2 dashboard. Verify if your instance type is supported in the region.

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

    Respect!

  • @ShyGuy_16
    @ShyGuy_16 Рік тому

    You earned a sub

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

    Anybody know where to look specifically when encountering a 502 BAD GATEWAY. I've checked over my configuration several times to no avail.

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

      Hi,
      Additionally, I'd suggest ensuring that you have configured your inbound rules correctly and that your application is setup in the correct directory and linked properly.

  • @amitsingla5918
    @amitsingla5918 Рік тому

    Good one thanks

  • @TrekStar11
    @TrekStar11 Рік тому

    bless you good sir

  • @davidenriquez1218
    @davidenriquez1218 4 місяці тому

    is it possible to deploy a django app that uses oracle db, in EC2?

    • @CloudWithDjango
      @CloudWithDjango  4 місяці тому

      Hi,
      Yes, it's possible to deploy a Django application that uses an Oracle database on an EC2 instance. However, it requires installing Oracle Instant Client libraries on the instance, configuring Django to use the Oracle backend, ensuring network connectivity to the Oracle database, optimizing performance, implementing security measures, and performing regular maintenance tasks.

  • @sabato.rwanda
    @sabato.rwanda Рік тому

    Thank you for amazing video, am starting with aws and that video was clear and shows everything. i just wonder if you can tell us if it is possible to set up virtual environment on EC2 and if it is possible to run more than one project on single instance. if you do or have done another video about that you can let us know, Thank you

    • @CloudWithDjango
      @CloudWithDjango  Рік тому

      My pleasure! :)
      Yes, it is possible to setup a virtual environment on ECS, and It won't be possible to run more than one project on a single instance, since the ip address needs to map to a website based on that project.
      Thank you for the suggestions. If I have time, I could possibly make a video on some of those things in the future.
      All the best,
      Arno

    • @sabato.rwanda
      @sabato.rwanda Рік тому

      @@CloudWithDjango thank you for reply, that means it's not really necessary to have virtual env on the instance if you can't have multiple projects on it, i think venv helps to avoid issues with packages in different projects.

    • @CloudWithDjango
      @CloudWithDjango  Рік тому

      Hi,
      No worries.
      It is still necessary to have a virtual environment since each unique project should have one. Each Django project would be seen as a single web application which is a separate website on an instance.

  • @inteliconn995
    @inteliconn995 Рік тому

    Thanks!

  • @SauravKumar-qz7no
    @SauravKumar-qz7no Рік тому

    Thanks a lot. Please make a video..how we can set any ci/cd pipeline in this project.

  • @Indra-indra
    @Indra-indra 4 місяці тому

    how did you connect sqlite3 databse into aws e2

    • @CloudWithDjango
      @CloudWithDjango  4 місяці тому

      Hi, it is automatically installed with a normal working Django project

  • @jackweaver5840
    @jackweaver5840 6 місяців тому

    how can I make it secure on https? because I added an inbound rule on https but it displays site cannot be reached, only on http port 8000 this works.

    • @CloudWithDjango
      @CloudWithDjango  6 місяців тому +1

      Hi,
      I'd suggest ensuring that you have your domain name in allowed hosts set, and that your dns records with your domain name has been cached correctly.
      You also need to ensure that your domain name has an SSL/TLS certificate associated with it.

  • @mooseoppai308
    @mooseoppai308 5 місяців тому

    I am getting this issue You're accessing the development server over HTTPS, but it only supports HTTP.

    • @CloudWithDjango
      @CloudWithDjango  5 місяців тому

      Hi,
      Please don't add a redirect in your django application for https. This can be done on AWS with your load balancer.

  • @gabcsistemasca
    @gabcsistemasca 10 місяців тому

    Hello, How can I active https in my python app (django) AWS EC2?

    • @CloudWithDjango
      @CloudWithDjango  9 місяців тому

      Hi you would need to register a domain name, and assign an SSL/TLS certificate first. After that you will need to configure it with your application.

  • @eagleresidencetaksim7564
    @eagleresidencetaksim7564 Рік тому

    but now I have made some changes in my github account. How can I update the final version? you can help

    • @CloudWithDjango
      @CloudWithDjango  Рік тому

      Hi,
      You just need to pull (clone) the latest commit from your repository.

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

    You missed env varibale setting

  • @MuhammadRizwan-ud7zv
    @MuhammadRizwan-ud7zv Рік тому

    can we connect or deploy our django backend api like pandas, in same way??

    • @CloudWithDjango
      @CloudWithDjango  Рік тому

      Hi,
      You would need to test this and experiment to know for sure.

  • @miltonweinhold6859
    @miltonweinhold6859 6 місяців тому

    thank you sooooo much

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

    Great tutorial! I was close to deploying my app but I ran into the error Invalid HTTP_HOST header: 'address:8000'. You may need to add 'address' to ALLOWED_HOSTS. How do I fix that?

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

      Hi,
      Thank you very much.
      Please double check your configuration settings exactly as demonstrated in the video. Line by line. Also, ensure that you have * under allowed hosts in your settings.py.

    • @Gab-sl3sw
      @Gab-sl3sw Рік тому +1

      did you found a solution? I'm stuck with the same error.

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

    Great tutorial! Using the default database (SQLite3) does not need extra configurations, but how to configure it when using PostgreSQL as a database?

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

      Hi,
      Thank you. I'm glad that it was useful to you. I would recommend making use of AWS RDS (postgres). I have a video available on how to do this - under my Django 4.0 playlist. Hope that helps.
      Good luck!

    • @teodor9056
      @teodor9056 Рік тому

      @@CloudWithDjango I watched the video, but I have already installed and configurated PostgreSQL and everything is working fine locally, but when I upload it to AWS as Ubuntu EC2 instance, I can not make the migrations... An error is raised - "Is the server running on host "xxx" and accepting TCP/IP connections on port 5432?" Any advices how to solve the problem? Should I install postgre on my ubuntu instance or something else?

    • @CloudWithDjango
      @CloudWithDjango  Рік тому +2

      Hi,
      This is most likely because you need to allow access to port 5432 from all IPV4 and IPV6 addresses. In your inbound rules.

    • @teodor9056
      @teodor9056 Рік тому

      @@CloudWithDjango Hello,
      The rules should be like that - res.cloudinary.com/hhmf7fxle/image/upload/v1674310453/aws_nzmr8j.png, right? But still get the same error...

    • @CloudWithDjango
      @CloudWithDjango  Рік тому

      @@teodor9056 Hi,
      The security groups are configured correctly.
      You probably need to configure your migrations before or during deployment from RDS

  • @rajushanigarapu8049
    @rajushanigarapu8049 9 місяців тому

    Would you make deploy python django project on AWS. And the server runs continuosly even we shutdown the computer.server should stop manually

    • @CloudWithDjango
      @CloudWithDjango  9 місяців тому

      Hi,
      As soon as you stop the instance, it will turn off.
      Thank you for the suggestion.

  • @user-vf1em7nw5n
    @user-vf1em7nw5n Рік тому

    Thank youu anna

  • @khgowda9996
    @khgowda9996 Рік тому

    helped lot brother

    • @CloudWithDjango
      @CloudWithDjango  Рік тому

      That's great to hear! I'm glad!

    • @khgowda9996
      @khgowda9996 Рік тому

      @@CloudWithDjangosir can we register domain in free in AWS and deploy online

    • @CloudWithDjango
      @CloudWithDjango  Рік тому

      @@khgowda9996 Hi,
      Sorry, the domain will cost money but the SSL certificate will be free

  • @quranicscience9631
    @quranicscience9631 9 місяців тому

    Amazing

  • @techwithgtm
    @techwithgtm Рік тому

    Hello there, can you please upload a tutorial on how we can containerize this django application? It will be very helpful. Thanks

  • @tony99659
    @tony99659 Рік тому

    can you make a video on how to put SSL certificate and a domain?

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

      Hi,
      Thank you for the suggestion.
      There is content on the channel to help you with this.
      Here are some links to give you some guidance.
      Register a domain name:
      ua-cam.com/video/gJ4HiV53W64/v-deo.html
      Attach an SSL ceritifcate to a load balancer:
      ua-cam.com/video/rhOsL3zR8TE/v-deo.html

  • @lucas_mart
    @lucas_mart Рік тому +3

    When we close the "EC2 instance connect" page, that is, the terminal, the site goes offline, how can we leave it working?

    • @CloudWithDjango
      @CloudWithDjango  Рік тому +3

      Hi,
      You would need to make use of a background processor such as supervisor.
      This tutorial will be more suited to keeping the server active after terminating the server:
      ua-cam.com/video/7O1H9kr1CsA/v-deo.html
      Good luck!

    • @lucas_mart
      @lucas_mart Рік тому +2

      @@CloudWithDjango Thanks 😜

  • @abdulraheem9755
    @abdulraheem9755 11 місяців тому

    Sir i followed these steps in your video. But the problem is when i shutdown the system i dont get the server. Is there any problem or feauture to be enabled for that. Pls reply

    • @CloudWithDjango
      @CloudWithDjango  11 місяців тому

      Hi Abdul,
      Yes, if you shutdown the system, nothing will run. Additional settings need to be setup for that to work.
      I do a have tutorial on my channel with Nginx which uses supervisor to keep everything running. I'm sure that will be more suited to your goal.

  • @aceplayer7479
    @aceplayer7479 Рік тому

    It's not working it says site cannot be reached even after modifying the security group settings what should I do

    • @CloudWithDjango
      @CloudWithDjango  Рік тому

      Hi,
      Please double check your settings.
      It works perfectly fine.

  • @techfc_586
    @techfc_586 4 місяці тому

    Hii thanks for the video
    I have an issue
    When i close the ec2 conenct page,
    The hosted website doesn't load
    I need to open ec2 connect and run the server again
    i.e: i need to keep my pc running always, with the ec2 connect page open, to access the website

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

      Hi. It's a pleasure. It seems your web server is running in the foreground. To keep the hosted website accessible after closing the EC2 Connect page, run the server in the background or use tools like nohup to detach the process.

    • @techfc_586
      @techfc_586 4 місяці тому

      @@CloudWithDjango thanks will check it
      Thanks for the quick reply

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

      No worries! Good luck!

  • @ayushvanvary
    @ayushvanvary Рік тому

    i have deployed the postgres database of same django app on aws rds, and static file in s3 aws , same app
    now can use this method to deploy my same app on aws ec2

    • @CloudWithDjango
      @CloudWithDjango  Рік тому

      Hi,
      It would depend on how you are planning to manage your application. But yes, EC2 is used for the virtual server and to launch your application.

    • @ayushvanvary
      @ayushvanvary Рік тому

      will try and update you thanks for a quick reply.

  • @ayushvanvary
    @ayushvanvary Рік тому

    can we acces this website from any pc via internet any where from the world

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

    Sir, where and how can i connect my specfic domain, it will be very helpfull if you'll reply, thank you.

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

      Hi,
      You would need to use AWS Route 53 to generate a domain name, and Amazon Certificate Manager to generate a FREE SSL/TLS certificate.
      After which you'd assign that domain name onto your load balancer or EC2 Instance directly.

  • @user-it1cj5gy7m
    @user-it1cj5gy7m 11 місяців тому

    I have a question. If I run server, Is this keep runging? or if I turn off computer, Is this terminate server?
    because my server dead whenever turn off the computer

    • @CloudWithDjango
      @CloudWithDjango  11 місяців тому

      Hi,
      This is expected to occur.
      Yes, you would need to use Nginx with supervisorctl to keep it permanently running.

    • @ericzhou6846
      @ericzhou6846 27 днів тому

      @@CloudWithDjangoHi sir, a follow-up question, does Nginx actually turn this application into a service that can actually keep running?

  • @nutanmali1993
    @nutanmali1993 9 місяців тому

    Is it working for a backend database SQLite?? I want to deploy the project having backend logic? I am a beginner plz help.

    • @CloudWithDjango
      @CloudWithDjango  9 місяців тому +1

      Hi,
      Yes, you shouldn't have a problem with your SQLite database, but if you do, you can switch out to postgres or mysql.
      Good luck!

    • @nutanmali1993
      @nutanmali1993 9 місяців тому

      @@CloudWithDjango Thanks for reply☺

    • @CloudWithDjango
      @CloudWithDjango  9 місяців тому

      My pleasure!

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

    How about custom domains and ssl certificates?

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

      Hi,
      You would need to look in AWS Route 53 and Amazon Certificate Manager for that (as a starting point)

  • @jackweaver5840
    @jackweaver5840 6 місяців тому

    hey, great video, I have a small question, if I'm running the app directly on ec2, how can I update the ec2 with the new code after making changes and adding new features, I'm not able to find any info about this specific subject in the web, the goal is to update the code on the existing ec2 instance that runs my app in order for the new features to be displayed when users interact with my app domain, what are the options exactly? connect to the ec2 via ssh and git pull master and this should be enough, I would very much appreciate if you could elaborate on this matter, I know that using ECS may be more simpler than this but I wanna now regardless how to update the ec2 instance with the latest code if my app instead of creating a new ec2 everytime, thanks a lot.

    • @CloudWithDjango
      @CloudWithDjango  6 місяців тому

      Thank you, I'm glad that you enjoyed the video.
      I see. You could do the following. To update the code on an existing EC2 instance, connect via SSH, navigate to your app directory, pull the latest changes from your Git repository, install/update dependencies, restart your application, and ensure to check logs for errors.

    • @jackweaver5840
      @jackweaver5840 6 місяців тому

      @@CloudWithDjango got it, thank you, is this how it is usually done? Is there a best practice for this scenario? I subbed for the channel today, I wanna get into cloud more and Im interested in django.

    • @CloudWithDjango
      @CloudWithDjango  6 місяців тому

      Hi,
      Yes, that is typically the way to go (usually the best practice), however there are multiple ways to do it, and I'd suggest researching and finding alternative ways that best suit your needs and preference etc.
      Ah, great! Thank you for your sub and support! All the best! :)

  • @Fleebee.
    @Fleebee. 6 днів тому

    Will this only work with public projects?

    • @CloudWithDjango
      @CloudWithDjango  6 днів тому

      Hi. You can use it for any type of project that you want

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

    do you have any tutorial of how to lunch using https?

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

      Hi,
      I do have a video that focus a little bit on https, but it's a little out of scope and may only help for some extra insight and reference only.
      Here is the video:
      ua-cam.com/video/rhOsL3zR8TE/v-deo.html
      Good luck!

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

      @@CloudWithDjango thanks a lot!

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

      My pleasure!

  • @vasiska
    @vasiska 6 місяців тому

    does not work as site and environment configuration is missing

    • @CloudWithDjango
      @CloudWithDjango  6 місяців тому

      Hi,
      Please double check your configuration

  • @zolintertainment2935
    @zolintertainment2935 Рік тому

    Thank you 😊

    • @CloudWithDjango
      @CloudWithDjango  Рік тому

      My pleasure!

    • @zolintertainment2935
      @zolintertainment2935 Рік тому

      @@CloudWithDjango I subscribed too 👍

    • @CloudWithDjango
      @CloudWithDjango  Рік тому

      @@zolintertainment2935 Thank you very much! I hope that you enjoy the content on the channel!

    • @zolintertainment2935
      @zolintertainment2935 Рік тому

      @@CloudWithDjango Yes it was very helpful, and am going to watch all your videos now. You are amazing when you explain, please do more videos. 🙏

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

      @@zolintertainment2935 Thank you very much. Yes, I've got more video tutorials planned!
      Happy learning!

  • @mastertys3059
    @mastertys3059 11 місяців тому

    How do i make it avaible for https?

    • @CloudWithDjango
      @CloudWithDjango  11 місяців тому

      Hi,
      You will need to purchase a domain name first with AWS Route 53, and then a TLS/SSL certificate with Amazon certificate manager

  • @ThiagoV928
    @ThiagoV928 3 місяці тому

    I had kept disallowed host.What do i do now?

    • @CloudWithDjango
      @CloudWithDjango  3 місяці тому

      Please ensure that you add in your domain name to allowed hosts

  • @mrjamesflores
    @mrjamesflores 6 місяців тому

    Sure, it works, but on port 8000 to the public isn’t very useful. Is there another video where you explain how to service the application on port 80/443?

  • @kishore_1071
    @kishore_1071 Рік тому

    Bro, how to make new commit changes to update in aws instance

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

      Hi,
      You need to pull your new changes from GitHub. It will be the same process that you followed when you first pulled your application in the EC2 terminal.

    • @kishore_1071
      @kishore_1071 Рік тому

      @@CloudWithDjango Thanks bro, it worked

    • @CloudWithDjango
      @CloudWithDjango  Рік тому

      My pleasure, Kishore!

  • @user-xi6ds1vl7v
    @user-xi6ds1vl7v 3 місяці тому

    I have rechecked all the steps at the final step I am getting site can't be reached error

    • @CloudWithDjango
      @CloudWithDjango  3 місяці тому

      Hi,
      I'd suggest checking your application as well.

    • @user-xi6ds1vl7v
      @user-xi6ds1vl7v 3 місяці тому

      @@CloudWithDjango I can run my application locally on the server successfully but only there is a problem when I am running it on amazon ec2

    • @CloudWithDjango
      @CloudWithDjango  3 місяці тому

      The only thing that I'd suggest in that case is to double check the steps as shown in the videos

  • @victorsamgichuhi2486
    @victorsamgichuhi2486 Місяць тому

    Using a Windows AMI. This did not work for me

    • @CloudWithDjango
      @CloudWithDjango  Місяць тому

      Hi,
      Yes, you'd need to use a linux distribution for this to work

  • @shabeeeb6400
    @shabeeeb6400 10 місяців тому

    after adding domain everything done ?

    • @CloudWithDjango
      @CloudWithDjango  10 місяців тому

      Hi,
      You can add in a domain if you'd like. I'm sorry, I'm not sure what you mean by done? There are plenty of things that can be added in. Such as an SSL/TLS certificate as well.

  • @toddgilbey3979
    @toddgilbey3979 4 місяці тому

    A stellar tutorial Kind sir!
    Quick question. I appreciate this is a year old and that as I'm sure you are aware Amazon have since introduced an additional authentication requirement when cloning your Git Repo.
    I'm all like "Whaaaaaaaaat"?
    Any light to be shed? Something about an SSH key
    Much appreciated.

    • @CloudWithDjango
      @CloudWithDjango  4 місяці тому

      Thank you so much!
      No worries, I can understand that with time past there would be changes that would need to be integrated.
      I'll give you some guidance on this:
      To adapt to Amazon's updated authentication requirements for accessing Git repositories, such as AWS CodeCommit, you'll need to transition to using SSH keys for authentication. Begin by generating an SSH key pair on your local machine using the ssh-keygen command in your terminal. This command generates both a public and private key. If you've set a passphrase for added security, consider adding your private key to the SSH agent using the ssh-add command to avoid entering the passphrase repeatedly.
      Next, log in to your Amazon AWS account and navigate to the IAM (Identity and Access Management) console. Within the console, upload your SSH public key (~/.ssh/id_rsa.pub) to "SSH keys for AWS CodeCommit."
      Once your SSH key is uploaded, configure Git to use SSH by updating the repository URL from HTTPS to SSH. Typically, the SSH URL provided by Amazon follows this format: ssh://git-codecommit.{region}.amazonaws.com/v1/repos/{repository-name}. Replace {region} with your AWS region and {repository-name} with the name of your repository. With this setup, when you access the repository, your SSH key will be utilized for authentication. If you've set a passphrase, you may be prompted for it unless you've added the key to the SSH agent. By following these steps, you'll seamlessly authenticate with Amazon's Git repositories using SSH keys, providing a more secure approach compared to traditional password authentication, particularly for processes involving sensitive data or automation.

    • @toddgilbey3979
      @toddgilbey3979 4 місяці тому

      @@CloudWithDjango Beautiful! I'll give this a shot!

    • @toddgilbey3979
      @toddgilbey3979 4 місяці тому

      @@CloudWithDjango There's no option for "SSH keys for AWS CodeCommit" on the IAM console but I'll figure it out.

    • @CloudWithDjango
      @CloudWithDjango  4 місяці тому

      No worries! I see. Since it's an EC2 instance, you could also try creating your EC2 instance and in the setup you should be able to download a keypair. That should allow you to SSH into your EC2 instance. Might make things easier for you. So, yeah there are quite a few ways to go about it.

    • @toddgilbey3979
      @toddgilbey3979 4 місяці тому

      @@CloudWithDjango I have no doubt that won't work either because it'll find something else to moan about - God forbid should my life be easy

  • @user-wl5vi5cn1s
    @user-wl5vi5cn1s 2 місяці тому

    if i use windows what should i do ?

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

      Hi,
      This video was made using a windows pc

    • @user-wl5vi5cn1s
      @user-wl5vi5cn1s 2 місяці тому

      @@CloudWithDjango hi can i contact u on instagram or something i need your help about my final year project deploiment please

  • @suyyrep
    @suyyrep Рік тому

    Is it free? I read it has 750 hours free of charge or something like that but i dont know

    • @CloudWithDjango
      @CloudWithDjango  Рік тому

      Hi,
      In AWS terms that is correct. You get a free tier usage which you are allotted. If you cross it you will need to pay for the extra costs.

  • @PrinceSoftwares
    @PrinceSoftwares 9 місяців тому

    i want to run it on port 80

    • @CloudWithDjango
      @CloudWithDjango  9 місяців тому

      Hi,
      You would need to configure this in your security groups and with the application.

  • @user-ku7pf9hy2w
    @user-ku7pf9hy2w 9 місяців тому

    nice but incomplete. This is not setup for production, static files, wsgi settings etc

    • @CloudWithDjango
      @CloudWithDjango  9 місяців тому

      Hi,
      Thank you. Support is given for static files under the pinned comment.

  • @drustan6890
    @drustan6890 6 місяців тому

    Is this the free tier EC2??.

    • @CloudWithDjango
      @CloudWithDjango  6 місяців тому

      Hi,
      Only up to a certain usage limit.
      Here is some further guidance for you, as per the docs:
      shorturl.at/LS357

  • @RANJEETSINHJAGDALE
    @RANJEETSINHJAGDALE 6 місяців тому

    KEEP CREATING CONTENT PLEASE.

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

    it’s showing error installing Django 😢

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

      Hi,
      Please double check your steps

    • @extorrote
      @extorrote Місяць тому

      Thank you ! I did and didn’t work , I just watched the video of yours that shows how to host a Django project on Aws , is that the way people can access to the content they f my app as a webApp of how do I have to do ? I just need to post a webApp and have a link to people can use my app as a website or webApp how ever you can call it. This is my first time trying to use hosting. And it’s been difficult since I’m using Django.

  • @hassanshahzad653
    @hassanshahzad653 Рік тому +2

    that is literally not a good way to deploy a django app, you are using the development server, which is not design to bear the loads

    • @CloudWithDjango
      @CloudWithDjango  Рік тому +3

      Hi,
      Thank you for your feedback.
      The purpose of the video tutorial is to get a simple and general idea of how you can undertake a form of deployment with EC2, and not to delve into an intricate architecture with load testing and to deal with the expected complexities of a huge array of traffic.

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

      @@CloudWithDjango probably I was too rude, my apologies

  • @ThiagoV928
    @ThiagoV928 3 місяці тому

    i am getting bad request(400) after running ther server.I did everything right

    • @CloudWithDjango
      @CloudWithDjango  3 місяці тому

      Hi,
      I'd suggest taking a look at your inbound rules for HTTP vs HTTPS

    • @ThiagoV928
      @ThiagoV928 3 місяці тому

      @@CloudWithDjango I have to submit this project in a week🥲

  • @riadalimammedov7209
    @riadalimammedov7209 Рік тому

    Hello.EC2 absolutely free?

    • @CloudWithDjango
      @CloudWithDjango  Рік тому

      Hi Riad.
      Thank you for your question.
      If you created your AWS account in the last year, then you will be eligible for the free tier. Which is completely free. After a year you will start paying for your instances. That being said the T2.micro instance is very cheap. As long as you only use it for quick testing.

    • @riadalimammedov7209
      @riadalimammedov7209 Рік тому

      @@CloudWithDjango Thank you answer

    • @CloudWithDjango
      @CloudWithDjango  Рік тому

      @@riadalimammedov7209 My pleasure!

  • @abdullahtarek2056
    @abdullahtarek2056 Рік тому

    nothing of the codes worked

    • @CloudWithDjango
      @CloudWithDjango  Рік тому

      Hi,
      Please check your configuration. There is nothing wrong with the code

  • @KrishnaManohar8021
    @KrishnaManohar8021 Рік тому

    First view stamp 🔥

  • @karuppasamypalanikumar875
    @karuppasamypalanikumar875 Рік тому

    Hi @cloudwithdjango
    I found you are videos are really helpful.
    can you please share video tutorials for Github Actions to Deploy Django Application

    • @CloudWithDjango
      @CloudWithDjango  Рік тому

      Hi,
      Thank you for your feedback and suggestion. If I have the time, I could maybe look into it, but I'm working on a lot of things at the moment. It is a good topic to explore though, so thanks for mentioning it.

  • @theodorechoi9184
    @theodorechoi9184 Рік тому

    I followed your tutorial, but I got a bad request(400). I'm not sure how I can fix that. I see this message in my console: "GET / HTTP/1.1" 400 143

    • @CloudWithDjango
      @CloudWithDjango  Рік тому

      Hi,
      Please double check the configuration settings for ec2 and ensure that your application is working locally.

  • @Coden69
    @Coden69 Рік тому

    lets gooooooooooooooooooooooooooooo

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

    How did it work without you installing a Web server?

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

      Hi,
      You don't need a web server for this since we use EC2 linux and the default WSGI.