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
- [Django]-Cannot import ASGI_APPLICATION module 'myproject.routing'
- [Django]-How does one create a custom 403 page in Django?
- [Django]-TypeError: the first argument must be callable when I import a scheduler in my views.py file of django?
- [Django]-Django admin datetime widget (calendar) in a custom form
Source:stackexchange.com