AttributeError: 'search' object has no attribute 'status_code' in django project
I'm testing a django project using the test sever when it gives me the following exception

> Traceback (most recent call last):

>  File "/usr/lib/pymodules/python2.6/django/core/servers/basehttp.py", line 280, in run
>    self.result = application(self.environ, self.start_response)
>
>  File "/usr/lib/pymodules/python2.6/django/core/servers/basehttp.py", line 674, in >__call__
>    return self.application(environ, start_response)
>
>  File "/usr/lib/pymodules/python2.6/django/core/handlers/wsgi.py", line 245, in __call__
>    response = middleware_method(request, response)
>
>  File "/usr/lib/pymodules/python2.6/django/middleware/common.py", line 84, in >process_response
>    if response.status_code == 404:
>
>AttributeError: 'search' object has no attribute 'status_code'

Just from reading this traceback, I don't think the problem is in my code, but I'm not sure. Could someone look through my code and help me solve this problem? my code is hosted on [GitHub][1] and any other comments or suggestions are greatly appreciated. Thanks in advance for your time and consideration.


  [1]: https://github.com/levicc00123/MusicGrep
AttributeError: 'search' object has no attribute 'status_code' in django project
===

I'm testing a django project using the test sever when it gives me the following exception

> Traceback (most recent call last):

>  File "/usr/lib/pymodules/python2.6/django/core/servers/basehttp.py", line 280, in run
>    self.result = application(self.environ, self.start_response)
>
>  File "/usr/lib/pymodules/python2.6/django/core/servers/basehttp.py", line 674, in >__call__
>    return self.application(environ, start_response)
>
>  File "/usr/lib/pymodules/python2.6/django/core/handlers/wsgi.py", line 245, in __call__
>    response = middleware_method(request, response)
>
>  File "/usr/lib/pymodules/python2.6/django/middleware/common.py", line 84, in >process_response
>    if response.status_code == 404:
>
>AttributeError: 'search' object has no attribute 'status_code'

Just from reading this traceback, I don't think the problem is in my code, but I'm not sure. Could someone look through my code and help me solve this problem? my code is hosted on [GitHub][1] and any other comments or suggestions are greatly appreciated. Thanks in advance for your time and consideration.


  [1]: https://github.com/levicc00123/MusicGrep