1
ProgrammingError(1110, "Column 'about' specified twice"

/usr/local/lib/python2.5/site-packages/MySQLdb/connections.py

errorclass    
<class '_mysql_exceptions.ProgrammingError'>  
errorvalue    
ProgrammingError(1110, "Column 'about' specified twice")  

这个错误似乎发生在 django_authopenid/views.py 中:

if 'bnewaccount' in request.POST.keys():  
         form1 = OpenidRegisterForm(request.POST)  
         if form1.is_valid():  
             next = clean_next(form1.cleaned_data.get('next'))  
             is_redirect = True  
             tmp_pwd = User.objects.make_random_password()  
             user_ = User.objects.create_user(form1.cleaned_data['username'],  
                      form1.cleaned_data['email'], tmp_pwd) ### this is the last evaluated line in my code  

             # make association with openid  
             uassoc = UserAssociation(openid_url=str(openid_),  
                     user_id=user_.id)  
             uassoc.save()  
4

1 回答 1

0

如果您询问如何闯入 pdb,请在您想要放入调试器的代码中添加以下行:

import pdb; pdb.set_trace() 

如果您需要知道如何在生产服务器上设置标准输出,我不知道。

于 2010-02-01T17:10:06.470 回答