Forums

'list' object has no attribute 'Lower'

When I clicked on the url http://teknote.pythonanywhere.com/ it issues below error.

AttributeError at /

'list' object has no attribute 'Lower'

Request Method: GET

Request URL: http://teknote.pythonanywhere.com/

Django Version: 1.10.5

Exception Type: AttributeError

Exception Value:

'list' object has no attribute 'Lower' Exception Location: /home/teknote/.virtualenvs/myproj/lib/python3.5/site-packages/django/utils/http.py in is_same_domain, line 273 Python Executable: /usr/local/bin/uwsgi Python Version: 3.5.2 Python Path:
['/var/www', '.', '', '/var/www', '/home/teknote/.virtualenvs/myproj/lib/python3.5', '/home/teknote/.virtualenvs/myproj/lib/python3.5/plat-x86_64-linux-gnu', '/home/teknote/.virtualenvs/myproj/lib/python3.5/lib-dynload', '/usr/lib/python3.5', '/usr/lib/python3.5/plat-x86_64-linux-gnu', '/home/teknote/.virtualenvs/myproj/lib/python3.5/site-packages', '/home/teknote/django-deployment-example/learning_templates'] Server time: Wed, 17 Jan 2018 09:19:15 +0000

Please let me know how to solve the issue.

  1. Python is case-sensitive. Most built-in methods are not going to start with a capital letter.
  2. Even if you used the correct method name, you're trying to lowercase a list, which will not work. If you want to lowercase something it will need to be a string.