2012-11-30 3 views
1

웹 응용 프로그램을 Django 1.41로 구축하고 배치를 위해 GAE를 사용하고 있습니다. 너무 좋아서, 등록시 사용자에게 전자 메일을 보내고 사용자가 암호를 변경할 수있게하려고 할 때를 제외하고 모든 것이 작동하는 것처럼 보입니다. NotimplementedError가 발생하고 예외가 제공되지 않습니다. 아래에 전체 스택을 붙여 넣었습니다. 내가 틀린 길을 무엇을 할 수 있을까?Django NotimplementedError on GAE

전체 장고 역 추적

사용자 정의 백엔드를 사용하여 제시 한 후, 내가 오류 '압축을 풀보다 하나의 값이 필요합니다'를 가지고
Environment: 


Request Method: POST 
Request URL: http://1.ngloancalc.appspot.com/register/ 

Django Version: 1.4.1 
Python Version: 2.7.2 
Installed Applications: 
('django.contrib.auth', 
'django.contrib.contenttypes', 
'django.contrib.sessions', 
'django.contrib.sites', 
'django.contrib.messages', 
'django.contrib.staticfiles', 
'django.contrib.admin', 
'django.contrib.admindocs', 
'carloan', 
'registeredmember', 
'contact') 
Installed Middleware: 
('django.middleware.common.CommonMiddleware', 
'django.contrib.sessions.middleware.SessionMiddleware', 
'django.middleware.csrf.CsrfViewMiddleware', 
'django.contrib.auth.middleware.AuthenticationMiddleware', 
'django.contrib.messages.middleware.MessageMiddleware') 


Traceback: 
File "/base/python27_runtime/python27_lib/versions/third_party/django-1.4/django/core/handlers/base.py" in get_response 
    111.       response = callback(request, *callback_args, **callback_kwargs) 
File "/base/data/home/apps/s~ngloancalc/1.363534897067998089/registeredmember/views.py" in userregistration 
    36.    connection.open() 
File "/base/python27_runtime/python27_lib/versions/third_party/django-1.4/django/core/mail/backends/smtp.py" in open 
    48.           local_hostname=DNS_NAME.get_fqdn()) 
File "/base/python27_runtime/python27_lib/versions/third_party/django-1.4/django/core/mail/utils.py" in get_fqdn 
    16.    self._fqdn = socket.getfqdn() 
File "/base/python27_runtime/python27_dist/lib/python2.7/socket.py" in getfqdn 
    129.   hostname, aliases, ipaddrs = gethostbyaddr(name) 
File "/base/python27_runtime/python27_lib/versions/1/google/appengine/api/remote_socket/_remote_socket.py" in gethostbyaddr 
    313. raise NotImplementedError() 

Exception Type: NotImplementedError at /register/ 
Exception Value: 

Environment: 


Request Method: POST 
Request URL: http://www.ngloancalc.appspot.com/resetpassword/ 

Django Version: 1.4.1 
Python Version: 2.7.2 
Installed Applications: 
('django.contrib.auth', 
'django.contrib.contenttypes', 
'django.contrib.sessions', 
'django.contrib.sites', 
'django.contrib.messages', 
'django.contrib.staticfiles', 
'django.contrib.admin', 
'django.contrib.admindocs', 
'carloan', 
'registeredmember', 
'contact') 
Installed Middleware: 
('django.middleware.common.CommonMiddleware', 
'django.contrib.sessions.middleware.SessionMiddleware', 
'django.middleware.csrf.CsrfViewMiddleware', 
'django.contrib.auth.middleware.AuthenticationMiddleware', 
'django.contrib.messages.middleware.MessageMiddleware') 


Traceback: 
File "/base/python27_runtime/python27_lib/versions/third_party/django-1.4/django/core/handlers/base.py" in get_response 
    111.       response = callback(request, *callback_args, **callback_kwargs) 
File "/base/python27_runtime/python27_lib/versions/third_party/django-1.4/django/utils/decorators.py" in _wrapped_view 
    91.      response = view_func(request, *args, **kwargs) 
File "/base/python27_runtime/python27_lib/versions/third_party/django-1.4/django/contrib/auth/views.py" in password_reset 
    160.    form.save(**opts) 
File "/base/python27_runtime/python27_lib/versions/third_party/django-1.4/django/contrib/auth/forms.py" in save 
    242.    send_mail(subject, email, from_email, [user.email]) 
File "/base/python27_runtime/python27_lib/versions/third_party/django-1.4/django/core/mail/__init__.py" in send_mail 
    59.          fail_silently=fail_silently) 
File "/base/python27_runtime/python27_lib/versions/third_party/django-1.4/django/core/mail/__init__.py" in get_connection 
    31.   mod_name, klass_name = path.rsplit('.', 1) 

Exception Type: ValueError at /resetpassword/ 
Exception Value: need more than 1 value to unpack 

답변

3

은 작동하지 않습니다 장고의 이메일 백엔드 앱 엔진의 이메일 API.

따라서 결코 장고를 만들려고 방지하지 않으며,
email_message.extra_headers['message-id'] = 'mydummymessageid' 

이 끝 :

다른 사람들은 단지 개발을 위해

https://bitbucket.org/andialbrecht/appengine_emailbackends/overview

+0

고맙습니다. 프롬프트 응답. 하지만이 오류는 '압축을 풀려면 1 개 이상의 가치가 필요합니다.' 전체 스택으로 내 op를 업데이트했습니다. – AJNinja

1

다른 해결 방법이 비록 않는 하나를 만들었습니다 전화를하려고 gethostbyaddr GAE 개발 환경에서