2010-02-01 55 views
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:如何進入pdb以在生產服務器上診斷此錯誤? ProgrammingError(1110,

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() 

回答

0

如果你問如何打入PDB,加要拖放到調試這一行代碼:

import pdb; pdb.set_trace() 

如果你需要知道如何讓您的生產服務器上的標準輸出,我不知道