I understand that you're trying to bind django on the Elastic IP addr 52.4.xxx.52 on an EC2 instance.
Elastic IP addr are not directly binded on an EC2 instance, they are associated with an ENI of your EC2 instance which usually has a private IP from the VPC. That's why Django is unable to find this IP addr to bind on.
If you have only one interface mounted on your EC2 instance you can find out with this command on linux " ip addr " and "ipconfig" on windows.
finally, replacing your --host 52.4.xxx.52 with the local IP will fix the issue. ( ie : --host 172.31.xxx.xxx )
use django developing web site in aws ec2asked 6 months ago
Can't see the default Django installation in the browserasked 7 months ago
Host a python django website in aws in free tierasked 14 days ago
Django Daphne Websocket Access Deniedasked 2 months ago
Web server not responding on AWS EC2 when sending larger http responseasked a year ago
Implement Security on the Web Application Without Touching the Web Applicationasked a year ago
Django App in ECS Container Cannot Connect to S3 in Gov CloudAccepted Answerasked 7 months ago
Deploy Rest API in DjangoAccepted Answerasked 10 months ago
How to Configure Celery and Celery Beat with Django deployed on Elastic Beanstalk Amazon Linux 2?asked 3 months ago
Cannot send Django regions to XRAY on awsasked a year ago