<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	「timeline项目开发日志&#8211;登陆、注册模块」的评论	</title>
	<atom:link href="https://haoluobo.com/2012/01/timeline-re/feed/" rel="self" type="application/rss+xml" />
	<link>https://haoluobo.com/2012/01/timeline-re/</link>
	<description>to be continue....</description>
	<lastBuildDate>Thu, 16 Dec 2021 03:41:13 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.2</generator>
	<item>
		<title>
		评论者：kt		</title>
		<link>https://haoluobo.com/2012/01/timeline-re/#comment-195</link>

		<dc:creator><![CDATA[kt]]></dc:creator>
		<pubDate>Tue, 17 Jun 2014 06:59:22 +0000</pubDate>
		<guid isPermaLink="false">/?p=10353#comment-195</guid>

					<description><![CDATA[真不错，不过github下载的userena不太会用，不会配置，我是django新手。能加个qq好友向您讨教么。]]></description>
			<content:encoded><![CDATA[<p>真不错，不过github下载的userena不太会用，不会配置，我是django新手。能加个qq好友向您讨教么。</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		评论者：vicalloy		</title>
		<link>https://haoluobo.com/2012/01/timeline-re/#comment-194</link>

		<dc:creator><![CDATA[vicalloy]]></dc:creator>
		<pubDate>Fri, 14 Dec 2012 05:37:26 +0000</pubDate>
		<guid isPermaLink="false">/?p=10353#comment-194</guid>

					<description><![CDATA[回复给 &lt;a href=&quot;https://haoluobo.com/2012/01/timeline-re/#comment-193&quot;&gt;Scarlex&lt;/a&gt;。

如果你做过i18n处理，错误消息和用户的语言设置有关。英文用户显示英文，中文用户显示成中文。替换成forms.CharField后应当就不会对中文做校验了。如果没有生效，估计是没有执行到你改过的代码，还是用的老代码。]]></description>
			<content:encoded><![CDATA[<p>回复给 <a href="https://haoluobo.com/2012/01/timeline-re/#comment-193">Scarlex</a>。</p>
<p>如果你做过i18n处理，错误消息和用户的语言设置有关。英文用户显示英文，中文用户显示成中文。替换成forms.CharField后应当就不会对中文做校验了。如果没有生效，估计是没有执行到你改过的代码，还是用的老代码。</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		评论者：Scarlex		</title>
		<link>https://haoluobo.com/2012/01/timeline-re/#comment-193</link>

		<dc:creator><![CDATA[Scarlex]]></dc:creator>
		<pubDate>Thu, 13 Dec 2012 07:09:59 +0000</pubDate>
		<guid isPermaLink="false">/?p=10353#comment-193</guid>

					<description><![CDATA[你好！
请问一下，django-registration如何设置中文用户名注册？
我试过把 username = forms.RegexField改成forms.CharField，这样会报错。。
另外，error_messages好像也不能设置成中文？]]></description>
			<content:encoded><![CDATA[<p>你好！<br />
请问一下，django-registration如何设置中文用户名注册？<br />
我试过把 username = forms.RegexField改成forms.CharField，这样会报错。。<br />
另外，error_messages好像也不能设置成中文？</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		评论者：vicalloy		</title>
		<link>https://haoluobo.com/2012/01/timeline-re/#comment-192</link>

		<dc:creator><![CDATA[vicalloy]]></dc:creator>
		<pubDate>Wed, 31 Oct 2012 01:01:04 +0000</pubDate>
		<guid isPermaLink="false">/?p=10353#comment-192</guid>

					<description><![CDATA[回复给 &lt;a href=&quot;https://haoluobo.com/2012/01/timeline-re/#comment-191&quot;&gt;Copy&lt;/a&gt;。

正确的做法应当是
- settings.py里设置你的用户属性models。如：AUTH_PROFILE_MODULE = &#039;profiles.Profile&#039;
- 配置urls.py，对userena_signup等url进行重写，设置成你的forms。如：
    url(r&#039;^signup/$&#039;, userena_views.signup,
        {&#039;signup_form&#039;: BsSignupForm}, name=&#039;userena_signup&#039;),
- 你可以将官方的demo再看看，里面有各种使用情况的演示。]]></description>
			<content:encoded><![CDATA[<p>回复给 <a href="https://haoluobo.com/2012/01/timeline-re/#comment-191">Copy</a>。</p>
<p>正确的做法应当是<br />
&#8211; settings.py里设置你的用户属性models。如：AUTH_PROFILE_MODULE = &#8216;profiles.Profile&#8217;<br />
&#8211; 配置urls.py，对userena_signup等url进行重写，设置成你的forms。如：<br />
    url(r&#8217;^signup/$&#8217;, userena_views.signup,<br />
        {&#8216;signup_form&#8217;: BsSignupForm}, name=&#8217;userena_signup&#8217;),<br />
&#8211; 你可以将官方的demo再看看，里面有各种使用情况的演示。</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		评论者：Copy		</title>
		<link>https://haoluobo.com/2012/01/timeline-re/#comment-191</link>

		<dc:creator><![CDATA[Copy]]></dc:creator>
		<pubDate>Tue, 30 Oct 2012 07:51:18 +0000</pubDate>
		<guid isPermaLink="false">/?p=10353#comment-191</guid>

					<description><![CDATA[Hi，您好，请教个问题：
我在SignupForm里增加了几个字段，但提交表单后，不能保存到Profile里。
下面的链接，与我的问题一模一样，但按照回答者的方法还是不行。
我在 save() 方法里加入 print 语句，根本打印不出来，是没有执行到吧。
http://stackoverflow.com/questions/8868040/adding-extra-fields-to-django-userena-forms]]></description>
			<content:encoded><![CDATA[<p>Hi，您好，请教个问题：<br />
我在SignupForm里增加了几个字段，但提交表单后，不能保存到Profile里。<br />
下面的链接，与我的问题一模一样，但按照回答者的方法还是不行。<br />
我在 save() 方法里加入 print 语句，根本打印不出来，是没有执行到吧。<br />
<a href="http://stackoverflow.com/questions/8868040/adding-extra-fields-to-django-userena-forms" rel="nofollow ugc">http://stackoverflow.com/questions/8868040/adding-extra-fields-to-django-userena-forms</a></p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
