How to use Django development server on port 8000 in amazon EC2 service
Allow inbound traffic to Amazon EC2 instance

How to use Django development server on port 8000 in amazon EC2 service


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.

  1. Go to EC2 management console
  2. Network & Security -> Security Groups
  3. Click on your Security group ID that you associated with your instance when you launched it.

add a rule to a security group that you associated with your instance when you launched it.
No alt text provided for this image

add a rule to your security group to use Django development server on port 8000

No alt text provided for this image

Good luck.

Shriya Sambyal

Growth Specialist

8 个月

Mojtaba, thanks for sharing!

回复
Solomon Igori

Senior Software Engineer | BBC

2 年

Thanks Mojtaba, It saved me hours of debugging

回复

要查看或添加评论,请登录

Mojtaba Arvin的更多文章

社区洞察

其他会员也浏览了