等量登录django注册激活URL [英] Equals sign in django-registration activation url

查看:114
本文介绍了等量登录django注册激活URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用django注册,由于某些原因,当它发送激活邮件时,它会在第三个到最后一个字符中插入一个等号: http://example.com/accounts/activate/a65b4aca5156211bc522e29f3e872290544d14=
e4 /

I am using django-registration and for some reason, when it sends the activation email, it inserts an equals sign in the third to last character as such: http://example.com/accounts/activate/a65b4aca5156211bc522e29f3e872290544d14= e4/

这意味着URL调度程序没有捕获URL(正则表达式是 ^ activate /(?P< activation_key> \w +)/ $ 。url不正确,应该没有等号。

This means the URL dispatcher does not catch the URL (the regex is ^activate/(?P<activation_key>\w+)/$. The url is incorrect anyway, as it should be without the equals sign.

任何人都知道为什么会发生这种情况?

Anybody know why this is happening?

推荐答案

您的电子邮件客户端没有正确读取被引用的可打印编码消息,一行最后一个 = 意味着该行应该连接到以下行无缝。

Your email client isn't reading the quoted-printable-encoded message properly. A = at the end of a line means that the line should be concatenated with the following line seamlessly.

这篇关于等量登录django注册激活URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆