Django deploy - Zappa onto AWS Lambda + API Gateway

Поділитися
Вставка
  • Опубліковано 7 січ 2025

КОМЕНТАРІ • 46

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

    This is a 3 years old video, but still helped me a lot. I am very new to Python but I could deploy my first Python application on cloud in first attempt with help of this video. Great Video, Thank you so much !!!

  • @valentim-aires
    @valentim-aires 4 роки тому +4

    Just needed to do this at work past week, thank you!

    • @veryacademy
      @veryacademy  4 роки тому

      Hey João, thank you for sharing, and would be interesting to know what type of project you are moving to serverless and the setup/tools you are using.

  • @chandramohan4375
    @chandramohan4375 4 роки тому +2

    @veryacademy this is the tutorial i was looking up for long time and i finally found out here!!! Teaching of your's is simple and to the point . I hope to see more videos from you of AWS services being integrated with the Django app(DynamoDB, API Gateway, SQS, SNS..etc). Great work. Thanks.

    • @veryacademy
      @veryacademy  4 роки тому +1

      Thank you - I do plan to cover more in the future for sure!

  • @bela123451
    @bela123451 2 роки тому

    Wow, finally good zappa tutorial!

  • @KrishnaManohar8021
    @KrishnaManohar8021 4 роки тому +5

    Terraform
    CI/CD with Jenkins
    Kindly include in your timeline Thank you.

  • @ravi851000
    @ravi851000 3 роки тому +1

    Hello, thanks for the video but am having a problem with SQLITE. I would like to use database and I want to upgrade sqlite3 to 3.9.0 or later. I tried upgrading it but nothing works. Please help me. Thank you.

  • @sivakeshcr
    @sivakeshcr 3 роки тому +3

    Getting an error :
    AttributeError: 'Template' object has no attribute 'add_description'
    Can anyone help. Happened when I deployed

    • @veryacademy
      @veryacademy  3 роки тому

      Hmm maybe gitmemory.com/issue/zappa/Zappa/1016/887919998

  • @Curiousmindees
    @Curiousmindees 3 роки тому

    Thankyou so much It helped me a lot.

  • @KrishnaManohar8021
    @KrishnaManohar8021 4 роки тому +2

    Very soon we reach one hundred thousand
    views 👏🏻👏🏻👏🏻👏🏻

    • @veryacademy
      @veryacademy  4 роки тому +2

      I doubt that is the case unfortunately. Django is a smaller community than say JS so this will be a slow developer for sure while we focus of Django. The numbers are good, everything is pointing upwards, I will share this type of info in the next dev update.

  • @pbwneeddd
    @pbwneeddd 4 роки тому +1

    A great tutorial. I deployed my first Django app on Lamba, but I cannot point my domain bought from Amazon to my Lamba project.

  • @afaf6478
    @afaf6478 4 роки тому +4

    Love your channel dude! I started learning django recently and so many of your videos seem to answer a lot of the questions I have. I would love to see to how to setup CI/CD for dajngo+zappa app.
    Keep up the good work!
    One thing that all the django tutorials are missing are philosophy/workflow of django. I mean the process of adding features to an app.
    Something like this:
    1. make an app
    2. create a model in app/models.py
    3. migrate
    4. create a view in app/views.py
    5. make a template in app/templates/app
    6. add the view and template to app/urls.py
    etc.
    Could you make a video on this topic? As a beginner I would really like to have this workflow written down somewhere so that I know the steps

    • @veryacademy
      @veryacademy  4 роки тому +4

      Thank you!!! Nice suggestion! Its a nice quick one I can make so I am all over that! CI/CD - that is a common theme coming from a few now so I will take note and put something in action shortly. 👍

    • @afaf6478
      @afaf6478 4 роки тому

      @@veryacademy CI/CD is something that everybody talks about but beginners don't know where to even begin. Maybe a short video with a study plan/resources on CI/CD would be a good start because it just seems like a very complex subject.

    • @joelmaldonado2315
      @joelmaldonado2315 2 роки тому

      @@veryacademy yes please. We love your videos. Really helpful. we need this video about CI/CD, RDS and email..

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

    Thank you for the Video, I have a question . what would be architecture advantages/disadvantages to deploy the Html, CSS etc file in S3 and Python code in Lambda vs everything in Lambda

  • @sharifahmed1925
    @sharifahmed1925 4 роки тому +2

    Thanks for the tutorial :)
    I wanted to ask - How would I connect my app to a production based Database on AWS whilst using Zappa?

    • @veryacademy
      @veryacademy  4 роки тому +3

      Hey, just need to configure the Django settings for the database, that would be a good start 👍

    • @sharifahmed1925
      @sharifahmed1925 4 роки тому +3

      @@veryacademy managed to get it to work. Turns out it's not as simple as just adding the database config, you also have to add a new vpc and subnets when creating the db, which you have to add to the lambda function. Then you have to add the security group of the lamda function to the db's inbound rule. After all that, mysql just wasn't working so I switched to a postgres db which didn't work either. So I installed psycopg2-binary along with psycopg2. And voila! Not sure if this is the most correct way but it worked!
      Anyone found any issues using an aws aurora mysql db on zappa/Django apps?

    • @pemessh
      @pemessh 2 роки тому +1

      This is the right way to do it.
      I was too lazy and had my RDS MySQL instance to have public access. However, I had to add inbound rules for all traffic + ipv4/ipv6 too for the security group that it was attached to.

  • @sufyanansari6096
    @sufyanansari6096 2 роки тому

    Do I need to install AWS CLI on my windows machine in order to Create AWS configuration file ..?

  • @EdisonGPrietoG
    @EdisonGPrietoG 3 роки тому +1

    Hi, I am having trouble with this because my project needs gis and GDAL for geographic locations, normally I would install this in the machine, but when deploying thru zappa, an error is raised. Is thera a way to work with GDAL that you migth knoww? thanks!

  • @paborlouise319
    @paborlouise319 4 роки тому +2

    Sir you nvr sleeps... Good work 👍. Is it possible to convert an ordinary deployed django project to DRF swiftly ?

    • @veryacademy
      @veryacademy  4 роки тому +1

      Hey Pabor, hope you are well. It can be moved across to DRF quickly, even better you can do a little at a time. Honestly I am on it all the time, not much content been coming out recently but I promise I am very busy working on things behind the scene. Not going anywhere that is for sure. As per normal the focus is on getting better content out there for you all.

    • @paborlouise319
      @paborlouise319 4 роки тому

      @@veryacademy am good, thanks for asking. Am working on a mini ecommence project, I'm still setting up the front-end, I'll be moving to the back end (Django) very soon. But wanna use just Django for now, until when am ready to include a frontend framework (react). But I was worried it would cause a lot of stress.

  • @souravjamwal77
    @souravjamwal77 2 роки тому

    As of now Zappa is revived, Shane (monkut) and team just released version 0.55.0

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

    I connect aws mysql rds to django. it works fine in my local system but when i deploy using zappa i got this error ----------- Error: Warning! Status check on the deployed lambda failed. A GET request to '/' yielded a 502 response code --------------- do you know how to solve this ? the issue is only in the mysql when i use postgress it works fine

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

    Does this allows to run selenium scripts with django

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

    it can't deploy if I use psycopg2 to connect db

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

    Python 3.12 is not supported what can i do?

  • @ardyubanos9226
    @ardyubanos9226 3 роки тому

    Please update the IAM permissions.

  • @Speaks4itself
    @Speaks4itself 4 роки тому

    It seems serverless is more expensive, there are hidden costs apparently from what I read.

    • @veryacademy
      @veryacademy  4 роки тому +1

      Hi WapEra, in some cases it can work out more expensive, but in general case there are cost savings to be had. Again its all about choosing the right tools for the job. 👍

  • @KrishnaManohar8021
    @KrishnaManohar8021 4 роки тому +1

    how can we scale this APIs?

    • @veryacademy
      @veryacademy  4 роки тому

      Of course sir, this is AWS 👍

  • @aminem5407
    @aminem5407 3 роки тому +1

    Lambda charged me costs that i did not expected during this

    • @veryacademy
      @veryacademy  3 роки тому +1

      Noted - thank you. Amazon may have made some changes since the tutorial was made.

    • @scootergirl3662
      @scootergirl3662 2 роки тому

      For those looking at this later, lambda is free for 1 million runs I believe per month, but the resources that lambda spins up may not be

  • @mahender8029
    @mahender8029 3 роки тому

    Note: As of now Zappa is DEPRECATED.

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

    How can we deal with lambda size errors