0

I got this error on the server. Do you know why this happened? I have a django website and have no clue why this error appear in the terminal. Your input would be much valuable!

[19/Mar/2018 18:27:45] "GET /posts/%20/static/css/navbar-top.css HTTP/1.1" 404 107
Traceback (most recent call last):
  File "/usr/lib/python3.4/wsgiref/handlers.py", line 137, in run
    self.result = application(self.environ, self.start_response)
  File "/usr/local/lib/python3.4/dist-packages/django/contrib/staticfiles/handlers.py", line 67, in __call__
    return super().__call__(environ, start_response)
  File "/usr/local/lib/python3.4/dist-packages/django/core/handlers/wsgi.py", line 146, in __call__
    response = self.get_response(request)
  File "/usr/local/lib/python3.4/dist-packages/django/contrib/staticfiles/handlers.py", line 62, in get_response
    return super().get_response(request)
  File "/usr/local/lib/python3.4/dist-packages/django/core/handlers/base.py", line 81, in get_response
    response = self._middleware_chain(request)
TypeError: 'NoneType' object is not callable
2
  • 2
    Show us the code please, we aren't wizards. Commented Mar 19, 2018 at 17:08
  • Did you find solution? Commented Apr 22, 2018 at 20:22

1 Answer 1

1

As mentioned in the comments, code would help people suggest solutions.

In general, when i see a 'Nonetype' not callable, I've usually treated a data member as a function, ie

request.method() 

when it should be something like

request.method

or vice-versa.

Other answers can be found here on stackoverflow:

TypeError: NoneType object is not callable

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.