2016-09-25 11 views
0

私はDjangoで学習中です。Djano:Solr rebuild_indexエラー403

私はテストアプリケーション用の検索エンジンを構築する必要があります。

私は

search_indexes.py

from haystack import indexes 
from .models import Post 

class PostIndex(indexes.SearchIndex, indexes.Indexable): 
    text = indexes.CharField(document=True, use_template=True) 
    publish = indexes.DateTimeField(model_attr='publish') 

    def get_model(self): 
     return Post 

    def index_queryset(self, using=None): 
     return self.get_model().published.all()` 

を持っていると私は自分のアプリケーションのためのSolrのコアの管理者を作成し、設定します。

そして、私はpython manage.py rebuild_indexを実行しようとすると、私はこのエラーを取得する:

<h1>This Page Cannot Be Displayed</h1> 
 
<p> 
 
Based on your organization's security policies, this web site( http://127.0.0.1/solr/blog/update/?commit=true )has been blocked because it has been determined to be a securitythreat to your computer or the organization's network.Access could also be blocked because this request came from anunrecognized or unauthorized machine. 
 
</p> 
 
<p> 
 
If you have questions, please contactyour organization's network administrator and provide the codes shown below.</p> 
 
</div>
HTML(これは、応答のほんの一部である)での応答次

raise SolrError(error_message % (resp.status_code, solr_message)) 
pysolr.SolrError: Solr responded with an error (HTTP 403): [Reason: None] 

私は "ブログ "アプリケーション。私はPostモデルを持っています。私は、ブログアプリケーションディレクトリのブログ/検索/インデックス/ブログ/ post_text.txt

image of blog core admin in solr

すべてのヘルプで作成されましたか?

ありがとうございました。

+0

Guys、問題は私のプロキシ設定でした。 – milutinke

答えて

0

問題は私のプロキシの設定でした。