Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 'ellipsis' object has no attribute 'lower'
#1
Hi There,

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
buran wrote Mar-14-2018, 03:14 PM:
Please, use proper tags when post code, traceback, output, etc. This time I have added tags for you.
See BBcode help for more info.
Quote
#2
The object ellipsis is represented by ... three dots.
This object is used somewhere as slice notation for scientific libraries like numpy.

If you put somewhere in you django config three dots without quotes,
it's recognized as a valid object, but it is in this case not a string.

Look for three dots in your config, edit it and then you'll be able to run it.
My code examples are always for Python >=3.6.0
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Quote
#3
Hi There,

Which config file I have change. Error is happening at http.py. Please help me Which file I have to change and where it would be located.

With Many Thanks,
Bharath AK
Quote
#4
You can perhaps find the file with the command
Output:
grep -E -e "[.]{3}" -r /your/project/folder
Quote
#5
Hi There,

It is listing out in lots file but not on any config file. Please tell me what can be done.

With Many thanks,
Bharath AK
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  AttributeError: 'str' object has no attribute 'xpath' nazmulfinance 4 250 Nov-11-2019, 05:15 PM
Last Post: nazmulfinance
  AttributeError: 'str' object has no attribute 'xpath' nazmulfinance 0 151 Nov-10-2019, 09:13 PM
Last Post: nazmulfinance
  form.populate_obj problem "object has no attribute translate" pascale 0 345 Jun-12-2019, 07:30 PM
Last Post: pascale
  Error object has no attribute text hcyeap 3 4,820 May-21-2019, 07:12 AM
Last Post: buran
  AttributeError: 'Response' object has no attribute 'replace' Truman 12 4,675 Mar-20-2019, 12:59 AM
Last Post: ichabod801
  AttributeError: 'dict' object has no attribute 'is_active' (PyMongo And Flask) usman 0 1,077 Nov-20-2018, 09:50 PM
Last Post: usman
  BeautifulSoup 'NoneType' object has no attribute 'text' bmccollum 9 4,670 Sep-14-2018, 12:56 PM
Last Post: bmccollum
  AttributeError: 'NoneType' object has no attribute error vk7 1 3,307 Feb-02-2018, 08:36 AM
Last Post: buran

Forum Jump:


Users browsing this thread: 1 Guest(s)