[Answered ]-502 Bad Gateway nginx/1.20.0 error on django app deployment to AWS

1👍

The problem was with djngo.config file

instead of the above it should be :

option_settings:
  aws:elasticbeanstalk:container:python:
    WSGIPath: multitennant_v2.wsgi:application

Source: Deploy a django application

Leave a comment