Hi There,
I am getting the following error when I run python3 manage.py runserver 0.0.0.0:8000
Please help me how to fix this error.
With Many thanks,
Bharath AK
I am getting the following error when I run python3 manage.py runserver 0.0.0.0:8000
Error:File "/usr/local/lib/python3.6/dist-packages/django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "/usr/local/lib/python3.6/dist-packages/django/utils/deprecation.py", line 138, in __call__
response = self.process_request(request)
File "/usr/local/lib/python3.6/dist-packages/django/middleware/security.py", line 25, in process_request
host = self.redirect_host or request.get_host()
File "/usr/local/lib/python3.6/dist-packages/django/http/request.py", line 105, in get_host
if domain and validate_host(domain, allowed_hosts):
File "/usr/local/lib/python3.6/dist-packages/django/http/request.py", line 579, in validate_host
if pattern == '*' or is_same_domain(host, pattern):
File "/usr/local/lib/python3.6/dist-packages/django/utils/http.py", line 291, in is_same_domain
pattern = pattern.lower()
AttributeError: 'ellipsis' object has no attribute 'lower'
I am running this command on ubuntu 16.04 in aws.Please help me how to fix this error.
With Many thanks,
Bharath AK