How to use Django development server on port 8000 in amazon EC2 service
Mojtaba Arvin
Sr. Software Engineer | Backend Developer in Python | Expert in FastAPI, Django, AWS, PostgreSQL & Redis | Built scalable APIs & microservices using Docker & K8s | Passionate about cloud, IaC, DevOps & MLOps
To enable network access to your AWS EC2 instance, you must allow inbound traffic to your instance which is possible through the Amazon console.
For example, if you want to use Django runserver command for development purposes, you should open the 8000 port for inbound traffic.
add a rule to your security group to use Django development server on port 8000
Good luck.
Growth Specialist
8 个月Mojtaba, thanks for sharing!
Senior Software Engineer | BBC
2 年Thanks Mojtaba, It saved me hours of debugging