2017-03-11 2 views
0

새로운 카테고리가 추가 된 다음 제품 유형이 추가 된 다음 제품이 추가되었습니다. 8080/카탈로그/zelenaia-kraska_6의 /를 : *screenshootDjango Oscar에 제품이 표시되지 않습니다.

나는 내 사이트 추적 링크 로컬 호스트에서 볼 수있는, 나의 새로운 카테고리를 볼 수 있지만, 모든 *screenshoot

에서 어떤 제품이 없다하지만 할 수 있습니다. 대시 보드에서이 링크를 얻을 수 있습니다 (제품 -> 작업 -> 사이트에서보기)

이 문제를 해결하는 방법?

콘솔 :

Failed to query Solr using '*:*': Failed to connect to server at 'http://127.0.0.1:8983/solr/select/?wt=json&fq=category_exact%3A%28%22%D0%93%D0%BB%D0%B0%D0%B2%D0%BD%D0%BE%D0%B5%22%29&fq=django_ct%3A%28catalogue.product%29&facet.query=price_exact%3A%5B0+TO+20%5D&facet.query=price_exact%3A%5B20+TO+40%5D&facet.query=price_exact%3A%5B40+TO+60%5D&facet.query=price_exact%3A%5B60+TO+%2A%5D&facet=on&facet.field=rating_exact&facet.field=product_class_exact&spellcheck.collate=true&start=0&spellcheck.count=1&spellcheck=true&fl=%2A+score&q=%2A%3A%2A&rows=1', are you sure that URL is correct? Checking it in a browser might help: HTTPConnectionPool(host='127.0.0.1', port=8983): Max retries exceeded with url: /solr/select/?wt=json&fq=category_exact%3A%28%22%D0%93%D0%BB%D0%B0%D0%B2%D0%BD%D0%BE%D0%B5%22%29&fq=django_ct%3A%28catalogue.product%29&facet.query=price_exact%3A%5B0+TO+20%5D&facet.query=price_exact%3A%5B20+TO+40%5D&facet.query=price_exact%3A%5B40+TO+60%5D&facet.query=price_exact%3A%5B60+TO+%2A%5D&facet=on&facet.field=rating_exact&facet.field=product_class_exact&spellcheck.collate=true&start=0&spellcheck.count=1&spellcheck=true&fl=%2A+score&q=%2A%3A%2A&rows=1 (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7ff32f113b00>: Failed to establish a new connection: [Errno 111] Connection refused',)) 
Traceback (most recent call last): 
    File "/usr/local/lib/python3.4/dist-packages/requests/packages/urllib3/connection.py", line 141, in _new_conn 
    (self.host, self.port), self.timeout, **extra_kw) 
    File "/usr/local/lib/python3.4/dist-packages/requests/packages/urllib3/util/connection.py", line 83, in create_connection 
    raise err 
    File "/usr/local/lib/python3.4/dist-packages/requests/packages/urllib3/util/connection.py", line 73, in create_connection 
    sock.connect(sa) 
ConnectionRefusedError: [Errno 111] Connection refused 

During handling of the above exception, another exception occurred: 

Traceback (most recent call last): 
    File "/usr/local/lib/python3.4/dist-packages/requests/packages/urllib3/connectionpool.py", line 600, in urlopen 
    chunked=chunked) 
    File "/usr/local/lib/python3.4/dist-packages/requests/packages/urllib3/connectionpool.py", line 356, in _make_request 
    conn.request(method, url, **httplib_request_kw) 
    File "/usr/lib/python3.4/http/client.py", line 1090, in request 
    self._send_request(method, url, body, headers) 
    File "/usr/lib/python3.4/http/client.py", line 1128, in _send_request 
    self.endheaders(body) 
    File "/usr/lib/python3.4/http/client.py", line 1086, in endheaders 
    self._send_output(message_body) 
    File "/usr/lib/python3.4/http/client.py", line 924, in _send_output 
    self.send(msg) 
    File "/usr/lib/python3.4/http/client.py", line 859, in send 
    self.connect() 
    File "/usr/local/lib/python3.4/dist-packages/requests/packages/urllib3/connection.py", line 166, in connect 
    conn = self._new_conn() 
    File "/usr/local/lib/python3.4/dist-packages/requests/packages/urllib3/connection.py", line 150, in _new_conn 
    self, "Failed to establish a new connection: %s" % e) 
requests.packages.urllib3.exceptions.NewConnectionError: <requests.packages.urllib3.connection.HTTPConnection object at 0x7ff32f113b00>: Failed to establish a new connection: [Errno 111] Connection refused 

During handling of the above exception, another exception occurred: 

Traceback (most recent call last): 
    File "/usr/local/lib/python3.4/dist-packages/requests/adapters.py", line 423, in send 
    timeout=timeout 
    File "/usr/local/lib/python3.4/dist-packages/requests/packages/urllib3/connectionpool.py", line 649, in urlopen 
    _stacktrace=sys.exc_info()[2]) 
    File "/usr/local/lib/python3.4/dist-packages/requests/packages/urllib3/util/retry.py", line 376, in increment 
    raise MaxRetryError(_pool, url, error or ResponseError(cause)) 
requests.packages.urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=8983): Max retries exceeded with url: /solr/select/?wt=json&fq=category_exact%3A%28%22%D0%93%D0%BB%D0%B0%D0%B2%D0%BD%D0%BE%D0%B5%22%29&fq=django_ct%3A%28catalogue.product%29&facet.query=price_exact%3A%5B0+TO+20%5D&facet.query=price_exact%3A%5B20+TO+40%5D&facet.query=price_exact%3A%5B40+TO+60%5D&facet.query=price_exact%3A%5B60+TO+%2A%5D&facet=on&facet.field=rating_exact&facet.field=product_class_exact&spellcheck.collate=true&start=0&spellcheck.count=1&spellcheck=true&fl=%2A+score&q=%2A%3A%2A&rows=1 (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7ff32f113b00>: Failed to establish a new connection: [Errno 111] Connection refused',)) 

During handling of the above exception, another exception occurred: 

Traceback (most recent call last): 
    File "/usr/local/lib/python3.4/dist-packages/pysolr.py", line 366, in _send_request 
    timeout=self.timeout) 
    File "/usr/local/lib/python3.4/dist-packages/requests/sessions.py", line 501, in get 
    return self.request('GET', url, **kwargs) 
    File "/usr/local/lib/python3.4/dist-packages/requests/sessions.py", line 488, in request 
    resp = self.send(prep, **send_kwargs) 
    File "/usr/local/lib/python3.4/dist-packages/requests/sessions.py", line 609, in send 
    r = adapter.send(request, **kwargs) 
    File "/usr/local/lib/python3.4/dist-packages/requests/adapters.py", line 487, in send 
    raise ConnectionError(e, request=request) 
requests.exceptions.ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=8983): Max retries exceeded with url: /solr/select/?wt=json&fq=category_exact%3A%28%22%D0%93%D0%BB%D0%B0%D0%B2%D0%BD%D0%BE%D0%B5%22%29&fq=django_ct%3A%28catalogue.product%29&facet.query=price_exact%3A%5B0+TO+20%5D&facet.query=price_exact%3A%5B20+TO+40%5D&facet.query=price_exact%3A%5B40+TO+60%5D&facet.query=price_exact%3A%5B60+TO+%2A%5D&facet=on&facet.field=rating_exact&facet.field=product_class_exact&spellcheck.collate=true&start=0&spellcheck.count=1&spellcheck=true&fl=%2A+score&q=%2A%3A%2A&rows=1 (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7ff32f113b00>: Failed to establish a new connection: [Errno 111] Connection refused',)) 

During handling of the above exception, another exception occurred: 

Traceback (most recent call last): 
    File "/usr/local/lib/python3.4/dist-packages/haystack/backends/solr_backend.py", line 134, in search 
    raw_results = self.conn.search(query_string, **search_kwargs) 
    File "/usr/local/lib/python3.4/dist-packages/pysolr.py", line 720, in search 
    response = self._select(params, handler=search_handler) 
    File "/usr/local/lib/python3.4/dist-packages/pysolr.py", line 418, in _select 
    return self._send_request('get', path) 
    File "/usr/local/lib/python3.4/dist-packages/pysolr.py", line 375, in _send_request 
    raise SolrError(error_message % params) 
pysolr.SolrError: Failed to connect to server at 'http://127.0.0.1:8983/solr/select/?wt=json&fq=category_exact%3A%28%22%D0%93%D0%BB%D0%B0%D0%B2%D0%BD%D0%BE%D0%B5%22%29&fq=django_ct%3A%28catalogue.product%29&facet.query=price_exact%3A%5B0+TO+20%5D&facet.query=price_exact%3A%5B20+TO+40%5D&facet.query=price_exact%3A%5B40+TO+60%5D&facet.query=price_exact%3A%5B60+TO+%2A%5D&facet=on&facet.field=rating_exact&facet.field=product_class_exact&spellcheck.collate=true&start=0&spellcheck.count=1&spellcheck=true&fl=%2A+score&q=%2A%3A%2A&rows=1', are you sure that URL is correct? Checking it in a browser might help: HTTPConnectionPool(host='127.0.0.1', port=8983): Max retries exceeded with url: /solr/select/?wt=json&fq=category_exact%3A%28%22%D0%93%D0%BB%D0%B0%D0%B2%D0%BD%D0%BE%D0%B5%22%29&fq=django_ct%3A%28catalogue.product%29&facet.query=price_exact%3A%5B0+TO+20%5D&facet.query=price_exact%3A%5B20+TO+40%5D&facet.query=price_exact%3A%5B40+TO+60%5D&facet.query=price_exact%3A%5B60+TO+%2A%5D&facet=on&facet.field=rating_exact&facet.field=product_class_exact&spellcheck.collate=true&start=0&spellcheck.count=1&spellcheck=true&fl=%2A+score&q=%2A%3A%2A&rows=1 (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7ff32f113b00>: Failed to establish a new connection: [Errno 111] Connection refused',)) 
Failed to query Solr using '*:*': Failed to connect to server at 'http://127.0.0.1:8983/solr/select/?wt=json&fq=category_exact%3A%28%22%D0%93%D0%BB%D0%B0%D0%B2%D0%BD%D0%BE%D0%B5%22%29&fq=django_ct%3A%28catalogue.product%29&facet.query=price_exact%3A%5B0+TO+20%5D&facet.query=price_exact%3A%5B20+TO+40%5D&facet.query=price_exact%3A%5B40+TO+60%5D&facet.query=price_exact%3A%5B60+TO+%2A%5D&facet=on&facet.field=rating_exact&facet.field=product_class_exact&spellcheck.collate=true&start=0&spellcheck.count=1&spellcheck=true&fl=%2A+score&q=%2A%3A%2A&rows=0', are you sure that URL is correct? Checking it in a browser might help: HTTPConnectionPool(host='127.0.0.1', port=8983): Max retries exceeded with url: /solr/select/?wt=json&fq=category_exact%3A%28%22%D0%93%D0%BB%D0%B0%D0%B2%D0%BD%D0%BE%D0%B5%22%29&fq=django_ct%3A%28catalogue.product%29&facet.query=price_exact%3A%5B0+TO+20%5D&facet.query=price_exact%3A%5B20+TO+40%5D&facet.query=price_exact%3A%5B40+TO+60%5D&facet.query=price_exact%3A%5B60+TO+%2A%5D&facet=on&facet.field=rating_exact&facet.field=product_class_exact&spellcheck.collate=true&start=0&spellcheck.count=1&spellcheck=true&fl=%2A+score&q=%2A%3A%2A&rows=0 (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7ff32f1305c0>: Failed to establish a new connection: [Errno 111] Connection refused',)) 
Traceback (most recent call last): 
    File "/usr/local/lib/python3.4/dist-packages/requests/packages/urllib3/connection.py", line 141, in _new_conn 
    (self.host, self.port), self.timeout, **extra_kw) 
    File "/usr/local/lib/python3.4/dist-packages/requests/packages/urllib3/util/connection.py", line 83, in create_connection 
    raise err 
    File "/usr/local/lib/python3.4/dist-packages/requests/packages/urllib3/util/connection.py", line 73, in create_connection 
    sock.connect(sa) 
ConnectionRefusedError: [Errno 111] Connection refused 

During handling of the above exception, another exception occurred: 

Traceback (most recent call last): 
    File "/usr/local/lib/python3.4/dist-packages/requests/packages/urllib3/connectionpool.py", line 600, in urlopen 
    chunked=chunked) 
    File "/usr/local/lib/python3.4/dist-packages/requests/packages/urllib3/connectionpool.py", line 356, in _make_request 
    conn.request(method, url, **httplib_request_kw) 
    File "/usr/lib/python3.4/http/client.py", line 1090, in request 
    self._send_request(method, url, body, headers) 
    File "/usr/lib/python3.4/http/client.py", line 1128, in _send_request 
    self.endheaders(body) 
    File "/usr/lib/python3.4/http/client.py", line 1086, in endheaders 
    self._send_output(message_body) 
    File "/usr/lib/python3.4/http/client.py", line 924, in _send_output 
    self.send(msg) 
    File "/usr/lib/python3.4/http/client.py", line 859, in send 
    self.connect() 
    File "/usr/local/lib/python3.4/dist-packages/requests/packages/urllib3/connection.py", line 166, in connect 
    conn = self._new_conn() 
    File "/usr/local/lib/python3.4/dist-packages/requests/packages/urllib3/connection.py", line 150, in _new_conn 
    self, "Failed to establish a new connection: %s" % e) 
requests.packages.urllib3.exceptions.NewConnectionError: <requests.packages.urllib3.connection.HTTPConnection object at 0x7ff32f1305c0>: Failed to establish a new connection: [Errno 111] Connection refused 

During handling of the above exception, another exception occurred: 

Traceback (most recent call last): 
    File "/usr/local/lib/python3.4/dist-packages/requests/adapters.py", line 423, in send 
    timeout=timeout 
    File "/usr/local/lib/python3.4/dist-packages/requests/packages/urllib3/connectionpool.py", line 649, in urlopen 
    _stacktrace=sys.exc_info()[2]) 
    File "/usr/local/lib/python3.4/dist-packages/requests/packages/urllib3/util/retry.py", line 376, in increment 
    raise MaxRetryError(_pool, url, error or ResponseError(cause)) 
requests.packages.urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=8983): Max retries exceeded with url: /solr/select/?wt=json&fq=category_exact%3A%28%22%D0%93%D0%BB%D0%B0%D0%B2%D0%BD%D0%BE%D0%B5%22%29&fq=django_ct%3A%28catalogue.product%29&facet.query=price_exact%3A%5B0+TO+20%5D&facet.query=price_exact%3A%5B20+TO+40%5D&facet.query=price_exact%3A%5B40+TO+60%5D&facet.query=price_exact%3A%5B60+TO+%2A%5D&facet=on&facet.field=rating_exact&facet.field=product_class_exact&spellcheck.collate=true&start=0&spellcheck.count=1&spellcheck=true&fl=%2A+score&q=%2A%3A%2A&rows=0 (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7ff32f1305c0>: Failed to establish a new connection: [Errno 111] Connection refused',)) 

During handling of the above exception, another exception occurred: 

Traceback (most recent call last): 
    File "/usr/local/lib/python3.4/dist-packages/pysolr.py", line 366, in _send_request 
    timeout=self.timeout) 
    File "/usr/local/lib/python3.4/dist-packages/requests/sessions.py", line 501, in get 
    return self.request('GET', url, **kwargs) 
    File "/usr/local/lib/python3.4/dist-packages/requests/sessions.py", line 488, in request 
    resp = self.send(prep, **send_kwargs) 
    File "/usr/local/lib/python3.4/dist-packages/requests/sessions.py", line 609, in send 
    r = adapter.send(request, **kwargs) 
    File "/usr/local/lib/python3.4/dist-packages/requests/adapters.py", line 487, in send 
    raise ConnectionError(e, request=request) 
requests.exceptions.ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=8983): Max retries exceeded with url: /solr/select/?wt=json&fq=category_exact%3A%28%22%D0%93%D0%BB%D0%B0%D0%B2%D0%BD%D0%BE%D0%B5%22%29&fq=django_ct%3A%28catalogue.product%29&facet.query=price_exact%3A%5B0+TO+20%5D&facet.query=price_exact%3A%5B20+TO+40%5D&facet.query=price_exact%3A%5B40+TO+60%5D&facet.query=price_exact%3A%5B60+TO+%2A%5D&facet=on&facet.field=rating_exact&facet.field=product_class_exact&spellcheck.collate=true&start=0&spellcheck.count=1&spellcheck=true&fl=%2A+score&q=%2A%3A%2A&rows=0 (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7ff32f1305c0>: Failed to establish a new connection: [Errno 111] Connection refused',)) 

During handling of the above exception, another exception occurred: 

Traceback (most recent call last): 
    File "/usr/local/lib/python3.4/dist-packages/haystack/backends/solr_backend.py", line 134, in search 
    raw_results = self.conn.search(query_string, **search_kwargs) 
    File "/usr/local/lib/python3.4/dist-packages/pysolr.py", line 720, in search 
    response = self._select(params, handler=search_handler) 
    File "/usr/local/lib/python3.4/dist-packages/pysolr.py", line 418, in _select 
    return self._send_request('get', path) 
    File "/usr/local/lib/python3.4/dist-packages/pysolr.py", line 375, in _send_request 
    raise SolrError(error_message % params) 
pysolr.SolrError: Failed to connect to server at 'http://127.0.0.1:8983/solr/select/?wt=json&fq=category_exact%3A%28%22%D0%93%D0%BB%D0%B0%D0%B2%D0%BD%D0%BE%D0%B5%22%29&fq=django_ct%3A%28catalogue.product%29&facet.query=price_exact%3A%5B0+TO+20%5D&facet.query=price_exact%3A%5B20+TO+40%5D&facet.query=price_exact%3A%5B40+TO+60%5D&facet.query=price_exact%3A%5B60+TO+%2A%5D&facet=on&facet.field=rating_exact&facet.field=product_class_exact&spellcheck.collate=true&start=0&spellcheck.count=1&spellcheck=true&fl=%2A+score&q=%2A%3A%2A&rows=0', are you sure that URL is correct? Checking it in a browser might help: HTTPConnectionPool(host='127.0.0.1', port=8983): Max retries exceeded with url: /solr/select/?wt=json&fq=category_exact%3A%28%22%D0%93%D0%BB%D0%B0%D0%B2%D0%BD%D0%BE%D0%B5%22%29&fq=django_ct%3A%28catalogue.product%29&facet.query=price_exact%3A%5B0+TO+20%5D&facet.query=price_exact%3A%5B20+TO+40%5D&facet.query=price_exact%3A%5B40+TO+60%5D&facet.query=price_exact%3A%5B60+TO+%2A%5D&facet=on&facet.field=rating_exact&facet.field=product_class_exact&spellcheck.collate=true&start=0&spellcheck.count=1&spellcheck=true&fl=%2A+score&q=%2A%3A%2A&rows=0 (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7ff32f1305c0>: Failed to establish a new connection: [Errno 111] Connection refused',)) 
/usr/lib/python3.4/importlib/_bootstrap.py:321: RemovedInDjango110Warning: django.core.context_processors is deprecated in favor of django.template.context_processors. 
    return f(*args, **kwds) 

[11/Mar/2017 20:25:33] "GET /catalogue/category/glavnoe_2/ HTTP/1.1" 200 25858 
Not Found: /media/cache/17/d5/17d59725435216b0e455fcb9659a84f3.jpg 
Internal Server Error: /media/cache/17/d5/17d59725435216b0e455fcb9659a84f3.jpg 
Traceback (most recent call last): 
    File "/usr/local/lib/python3.4/dist-packages/django/contrib/sites/models.py", line 44, in _get_site_by_request 
    SITE_CACHE[host] = self.get(domain__iexact=host) 
    File "/usr/local/lib/python3.4/dist-packages/django/db/models/manager.py", line 122, in manager_method 
    return getattr(self.get_queryset(), name)(*args, **kwargs) 
    File "/usr/local/lib/python3.4/dist-packages/django/db/models/query.py", line 387, in get 
    self.model._meta.object_name 
django.contrib.sites.models.DoesNotExist: Site matching query does not exist. 

During handling of the above exception, another exception occurred: 

Traceback (most recent call last): 
    File "/usr/local/lib/python3.4/dist-packages/django/core/handlers/base.py", line 235, in get_response 
    response = middleware_method(request, response) 
    File "/usr/local/lib/python3.4/dist-packages/django/contrib/flatpages/middleware.py", line 11, in process_response 
    return flatpage(request, request.path_info) 
    File "/usr/local/lib/python3.4/dist-packages/django/contrib/flatpages/views.py", line 35, in flatpage 
    site_id = get_current_site(request).id 
    File "/usr/local/lib/python3.4/dist-packages/django/contrib/sites/shortcuts.py", line 15, in get_current_site 
    return Site.objects.get_current(request) 
    File "/usr/local/lib/python3.4/dist-packages/django/contrib/sites/models.py", line 67, in get_current 
    return self._get_site_by_request(request) 
    File "/usr/local/lib/python3.4/dist-packages/django/contrib/sites/models.py", line 52, in _get_site_by_request 
    SITE_CACHE[domain] = self.get(domain__iexact=domain) 
    File "/usr/local/lib/python3.4/dist-packages/django/db/models/manager.py", line 122, in manager_method 
    return getattr(self.get_queryset(), name)(*args, **kwargs) 
    File "/usr/local/lib/python3.4/dist-packages/django/db/models/query.py", line 387, in get 
    self.model._meta.object_name 
django.contrib.sites.models.DoesNotExist: Site matching query does not exist. 
[11/Mar/2017 20:25:33] "GET /media/cache/17/d5/17d59725435216b0e455fcb9659a84f3.jpg HTTP/1.1" 500 128371 
[11/Mar/2017 20:25:33] "GET /static/oscar/favicon.ico HTTP/1.1" 200 1150 

답변

1

확인 django.contrib.sites를 확인하여 INSTALLED_APPS 목록에 있습니다. 또한 SITE_ID 설정이 ID로 채워 졌는지 확인하십시오.

SITE_ID = 1 
관련 문제