3
내가 문제는 내가이 오류를 발견'ModelOptions'개체가 어떤 속성 'local_many_to_many'
GAE (구글 앱 엔진)에 장고 프로젝트를 마이그레이션하기 위해 노력하고있어이없는 경우 로그인을 시도 :
'ModelOptions' object has no attribute 'local_many_to_many'
라인 provocking 오류 :
user = authenticate(username=uName,password=uPass)
부분 코드 :
if request.method == 'POST':
if request.POST['submit'] == 'Login':
postDict = request.POST.copy()
lForm = LoginForm(postDict)
if (lForm.is_valid()):
uName = request.POST['username']
uPass = request.POST['password']
user = authenticate(username=uName,password=uPass)
if user is not None:
if user.is_active:
login(request,user)
return HttpResponseRedirect(next)
else:
message = 'Account Deactivated'
,451,515,
추적 :
['/Users/xavicolomer/Dropbox/projects/workspace2/test',
'/Users/xavicolomer/Dropbox/projects/workspace2/test/django.zip',
'/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine',
'/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/lib/antlr3',
'/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/lib/django_0_96',
'/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/lib/fancy_urllib',
'/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/lib/ipaddr',
'/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/lib/webob',
'/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/lib/yaml/lib',
'/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/lib/simplejson',
'/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/lib/graphy',
'/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine',
'/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources',
'/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python26.zip',
'/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6',
'/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-darwin',
'/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac',
'/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/lib-scriptpackages', '/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python',
'/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-tk',
'/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-old',
'/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload',
'/Library/Python/2.6/site-packages',
'/usr/share/django/django-trunk',
'/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/PyObjC',
'/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/wx-2.8-mac-unicode']
몇 가지 추가 세부 정보가 도움이 될 것입니다. 전체 스택 추적, 인증 메소드 정의 및 local_many_to_many가 포함 된 모델 정의를 포함하십시오. –
잘보고있는 미래의 오류를보고, 2.5 대신 python2.6을 사용하고 django 0.96은 1.2를 사용했을 때 –
Drew Sears가 말했듯이, 추가 정보가 좋을 것입니다. 그 동안이 포럼에서 Waldemar의 조언은 유용 할 수 있습니다. http://groups.google.com/group/google-appengine-python/browse_thread/thread/a13117221ab00251 – ygneo