DisallowedHost at /
Invalid HTTP_HOST header: '192.168.55.10:8000'. You may need to add '192.168.55.10' to ALLOWED_HOSTS.
Request Method: | GET |
---|---|
Request URL: | http://192.168.55.10:8000/ |
Django Version: | 2.1.8 |
Exception Type: | DisallowedHost |
Exception Value: |
|
Exception Location: | /usr/local/python3/lib/python3.6/site-packages/django/http/request.py in get_host, line 106 |
Python Executable: | /usr/bin/python3 |
Python Version: | 3.6.9 |
Python Path: |
|
Server time: | Monday, 21 October 2019 17:07:12 + 0800 |
Modify in the project we created setting.py File
ALLOWED_ Hosts = [‘*’], the host requested here is added *
Similar Posts:
- Python AttributeError: ‘unicode’ object has no attribute ‘tzinfo’
- [Solved] Django use search_fields error (in get_lookup_constraint)
- Django startup error: generator expression must be parentized
- [Solved] Django cannot create an app after creating a project
- Strange frame error caused by incorrect use of flash. Redirect (‘/ path’) in flash
- ERRORS: ?: (staticfiles.E002) The STATICFILES_DIRS setting should not contain the STATIC_ROOT set…
- Pycharm cannot import the third-party library no module named urllib3
- TypeError at /index.html/ ‘method’ object is not subscriptable
- Django logs detailed error reporting information
- Python 2.7 and 3.4 requests Error: No module named ‘zlib’