Django-Allauth和输入/输出错误

时间:2015-08-04 10:26:09

标签: python django io django-allauth

我在我的项目中安装了Django-AllAuth应用程序并且工作正常,但是当我想手动注册时遇到以下错误:

[Errno 5] Input/output error

template_name = "account/signup.html"
form_class = SignupForm
redirect_field_name = "next"
success_url = None
@sensitive_post_parameters_m
def dispatch(self, request, *args, **kwargs):
                return super(SignupView, self).dispatch(request, *args, **kwargs) ...
def get_form_class(self):
    return get_form_class(app_settings.FORMS, 'signup', self.form_class)
def get_success_url(self):
    # Explicitly passed ?next= URL takes precedence


has_verified_email = EmailAddress.objects.filter(user=user,
                                                 verified=True).exists()
if email_verification == EmailVerificationMethod.NONE:
    pass
elif email_verification == EmailVerificationMethod.OPTIONAL:
    # In case of OPTIONAL verification: send on signup.
    if not has_verified_email and signup:
                    send_email_confirmation(request, user, signup=signup) ...
elif email_verification == EmailVerificationMethod.MANDATORY:
    if not has_verified_email:
        send_email_confirmation(request, user, signup=signup)
        return HttpResponseRedirect(
            reverse('account_email_verification_sent'))

我是新手请一步一步帮助我,TNX

0 个答案:

没有答案