[Django]-How to allow others to connect to my Django website?

8👍

In settings.py write

ALLOWED_HOSTS = ['*'] and run python manage.py runserver 0.0.0.0:8000

Note: you can use any port instead of 8000

0👍

There are steps to resolve this problem are:

1. Use http://<your ip address> than https

2. Then in settings.py write

ALLOWED_HOSTS = ['*'] 

3. Finally ran the server with:

python manage.py runserver 0.0.0.0:8000

Leave a comment