내 응용 프로그램에서 python-twitter 모듈을 가져 오려고하면 django가 python-twitter 모듈 대신 django.templatetags.twitter를 가져 오려고 시도합니다 (in /usr/lib/python2.5). /site-packages/twitter.py), 왜 그런지 모르겠습니다. :의Django : python-twitter 모듈 가져 오기 문제
예를 들어
myproject/
myapp/
templatetags/
file.py
file.py
에서 :
import twitter # this imports django.templatetags.twitter
를 해결하기 위해 어떤 생각?
은 대단히 감사합니다 :)편집 : 나는 문제를 발견했습니다. 내 templatetags 파일의 이름은 "twitter.py"입니다. 나는 "twitter_tags.py"로 이름을 바꿨다. :)