ProgrammingError at /account/register/
(1110, "Column 'about' specified twice")Request Method: POST
Request URL: http:
Exception Type: ProgrammingError
Exception Value: (1110, "Column 'about' specified twice")
Exception Location: /home/temp/lib/python2.6/site-packages/MySQL_python-1.2.3c1-py2.6-linux-x86_64.egg/MySQLdb/connections.py in defaulterrorhandler, line 36
Python Executable: /home/temp/bin/python
Python Version: 2.6.2
3 回答
亚历克斯很接近 - 这肯定是 MySQL 返回的语法错误。这不太可能是由 aCREATE
或ALTER
though 引起的,因为您已经设置了项目并通过 HTTP 使用它。
有一个 MySQL 错误 # 会在语法正确的语句上产生类似的行为。但它已经很老了,Dreamhost 不太可能使用这样的 MySQL 版本。
它更有可能来自您的模型生成的错误SELECT
/// INSERT
。关注定义一个(或两个)字段的相关模型,称为.UPDATE
DELETE
about
Looks like you have a CREATE TABLE
(or ALTER TABLE
, etc) which is trying to put two columns both named about
in the same SQL table -- beyond this, without seeing any of your code, it's impossible to say.
I'm only learning Python now, and I don't know Django, but my guess is that you have an attribute named 'about' that's been specified twice and needs to be mapped into the database. Django is resisting your efforts.