Re: User Profile Problem

2009-04-07 Thread hc w
matthews.com/ 2009/4/7 hc w <skysoari...@yahoo.com.cn> Hii, all  I just want to add a foreign key--'FourS'-- to the user model .I have modified it as following.it works on our dev env in windows but failed in product env in linux ( apache2.0.54 +mod_python3.3.1+prefork mode)  .  Can

User Profile Problem

2009-04-07 Thread hc w
Hii, all  I just want to add a foreign key--'FourS'-- to the user model .I have modified it as following.it works on our dev env in windows but failed in product env in linux ( apache2.0.54 +mod_python3.3.1+prefork mode)  .  Can anyone tell me why and some solution?  Thanks MODEL:  from

show choice field title not value on template

2009-03-27 Thread hc w
Hi, all I defined a choice field in model like bellow:      sendchannel = models.CharField(max_length=1,choices=(('1','channel 1'),('2','channel 2'))) so how to  show the choice title but not value on template?  I scanned admin templates . seems something like dict(choices).get(). just

Re: schema to model

2009-03-16 Thread hc w
Thank you. Alex  --- 09年3月17日,周二, Alex Gaynor 写道: 发件人: Alex Gaynor 主题: Re: schema to model 收件人: django-users@googlegroups.com 日期: 2009年3月17日,周二,上午10:54 On Mon, Mar 16, 2009 at 10:42 PM, skysoaring1 wrote: Hi,All,