2011-08-23 2 views
0

django-disqus 앱에 장고 주석을 내보내려고합니다. 내가 python manage.py disqus_export --verbosity=0를 실행하면, 나는 다음과 같은 오류 라인을 얻을 :django-disqus 앱에서 disqus_export 실행

Traceback (most recent call last): 
    File "manage.py", line 11, in <module> 
    execute_manager(settings) 
    File "/home/xx/webapps/xx/lib/python2.5/django/core/management/__init__.py", line 438, in execute_manager 
    utility.execute() 
    File "/home/xx/webapps/xx/lib/python2.5/django/core/management/__init__.py", line 379, in execute 
    self.fetch_command(subcommand).run_from_argv(self.argv) 
    File "/home/xx/webapps/xx/lib/python2.5/django/core/management/base.py", line 191, in run_from_argv 
    self.execute(*args, **options.__dict__) 
    File "/home/xx/webapps/xx/lib/python2.5/django/core/management/base.py", line 220, in execute 
    output = self.handle(*args, **options) 
    File "/home/xx/lib/python2.5/django_disqus-0.4.1-py2.5.egg/disqus/management/commands/disqus_export.py", line 80, in handle 
    forum_list = client.get_forum_list(user_api_key=settings.DISQUS_API_KEY) 
    File "/home/xx/lib/python2.5/django_disqus-0.4.1-py2.5.egg/disqus/api.py", line 53, in call_method 
    return self.call(attr, **kwargs) 
    File "/home/xx/lib/python2.5/django_disqus-0.4.1-py2.5.egg/disqus/api.py", line 79, in call 
    response = urllib2.urlopen(request) 
    File "/usr/local/lib/python2.5/urllib2.py", line 124, in urlopen 
    return _opener.open(url, data) 
    File "/usr/local/lib/python2.5/urllib2.py", line 387, in open 
    response = meth(req, response) 
    File "/usr/local/lib/python2.5/urllib2.py", line 498, in http_response 
    'http', request, response, code, msg, hdrs) 
    File "/usr/local/lib/python2.5/urllib2.py", line 425, in error 
    return self._call_chain(*args) 
    File "/usr/local/lib/python2.5/urllib2.py", line 360, in _call_chain 
    result = func(*args) 
    File "/usr/local/lib/python2.5/urllib2.py", line 506, in http_error_default 
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) 
urllib2.HTTPError: HTTP Error 400: BAD REQUEST 

여기를 참조하십시오 : http://readthedocs.org/docs/django-disqus/en/latest/commands.html#disqus-export

--dry 실행 명령이 작동하지만, 그래서 나는 무슨 일인지 모르겠어요.

답변

0

잘못된 자격 증명이 제공되면 Disqus가 400을 반환 할 수 있습니다. 장고 - 디스크스 (Django-disqus)를 살펴본 지 꽤 오래되었지만 제공 한 자격 증명이 모두 유효하다는 것을 확인할 수 있습니까?

+0

네, 저도 궁금 해서요. 그러나 자격 증명이 맞습니다. – AAA

관련 문제