如何理解船员是船舶 a.b.是什么船员团队的一员

船员生活日记_百度文库
两大类热门资源免费畅读
续费一年阅读会员,立省24元!
船员生活日记
阅读已结束,下载文档到电脑
想免费下载更多文档?
定制HR最喜欢的简历
你可能喜欢君,已阅读到文档的结尾了呢~~
谈谈船员在船培训任务[解说]
扫扫二维码,随身浏览文档
手机或平板扫扫即可继续访问
谈谈船员在船培训任务[解说]
举报该文档为侵权文档。
举报该文档含有违规或不良信息。
反馈该文档无法正常浏览。
举报该文档为重复文档。
推荐理由:
将文档分享至:
分享完整地址
文档地址:
粘贴到BBS或博客
flash地址:
支持嵌入FLASH地址的网站使用
html代码:
&embed src='/DocinViewer--144.swf' width='100%' height='600' type=application/x-shockwave-flash ALLOWFULLSCREEN='true' ALLOWSCRIPTACCESS='always'&&/embed&
450px*300px480px*400px650px*490px
支持嵌入HTML代码的网站使用
您的内容已经提交成功
您所提交的内容需要审核后才能发布,请您等待!
3秒自动关闭窗口当前位置: &
公司就是你的船(修订版)/袁丽军
滚动鼠标滚轴,图片即可轻松放大、缩小
公司就是你的船(修订版)/袁丽军(图1)
电&&&&&&话:
开&&&&&&本:16开
页&&&&&&数:147页
字&&&&&&数:
I&&S&&B&&N:0
售&&&&&&价:17.11元
Copyright(C)
孔夫子旧书网
京ICP证041501号
海淀分局备案编号IntegrityError at /news/article/news/chaxx/77892/
IntegrityError at /news/article/news/chaxx/77892/
(1452, 'Cannot add or update a child row: a foreign key constraint fails (`cosco`.`news_article`, CONSTRAINT `user_id_refs_id_db23561e` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`))')
Request Method:
Request URL:
/news/article/news/chaxx/77892/
Django Version:
Exception Type:
IntegrityError
Exception Value:
(1452, 'Cannot add or update a child row: a foreign key constraint fails (`cosco`.`news_article`, CONSTRAINT `user_id_refs_id_db23561e` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`))')
Exception Location:
/usr/local/lib/python2.7/dist-packages/MySQLdb/connections.py in defaulterrorhandler, line 36
Python Executable:
/usr/bin/python
Python Version:
Python Path:
['/usr/local/lib/python2.7/dist-packages/pip-1.4.1-py2.7.egg',
'/usr/local/lib/python2.7/dist-packages/django_simple_avatar-0.8.6-py2.7.egg',
'/usr/lib/python2.7',
'/usr/lib/python2.7/plat-linux2',
'/usr/lib/python2.7/lib-tk',
'/usr/lib/python2.7/lib-old',
'/usr/lib/python2.7/lib-dynload',
'/usr/local/lib/python2.7/dist-packages',
'/usr/local/lib/python2.7/dist-packages/PIL',
'/usr/local/lib/python2.7/dist-packages/setuptools-2.0dev-py2.7.egg',
'/usr/lib/python2.7/dist-packages',
'/usr/local/lib/python2.7/dist-packages/lbforum_site']
Server time:
星期三, 11 十月 :29 +0800
/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py in get_response
for middleware_method in self._view_middleware:
response = middleware_method(request, callback, callback_args, callback_kwargs)
if response:
if response is None:
response = callback(request, *callback_args, **callback_kwargs) ...
except Exception, e:
# If the view raised an exception, run it through exception
# middleware, and if the exception middleware returns a
# response, use that. Otherwise, reraise the exception.
for middleware_method in self._exception_middleware:
response = middleware_method(request, e)
exceptions
&module 'django.core.exceptions' from '/usr/local/lib/python2.7/dist-packages/django/core/exceptions.pyc'&
IntegrityError(1452, 'Cannot add or update a child row: a foreign key constraint fails (`cosco`.`news_article`, CONSTRAINT `user_id_refs_id_db23561e` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`))')
callback_args
&django.conf.LazySettings object at 0x7f5d61622dd0&
middleware_method
&bound method CuserMiddleware.process_exception of &cuser.middleware.CuserMiddleware object at 0x7f5d6204ba90&&
&django.core.handlers.wsgi.WSGIHandler object at 0x7f5d61c31a50&
&&WSGIRequest\npath:/news/article/news/chaxx/77892/,\nGET:&QueryDict: {}&,\nPOST:&QueryDict: {}&,\nCOOKIES:{},\nMETA:{'DOCUMENT_ROOT': '/var/www',\n 'GATEWAY_INTERFACE': 'CGI/1.1',\n 'HTTP_ACCEPT': '*/*',\n 'HTTP_HOST': '',\n 'HTTP_REFERER': '/s?wd=',\n 'HTTP_USER_AGENT': 'Mozilla/5.0 (compatible, MSIE 11, Windows NT 6.3; Trident/7.0; rv:11.0) like Gecko',\n 'HTTP_X_CURL': 'Baiduspider',\n 'PATH_INFO': u'/news/article/news/chaxx/77892/',\n 'PATH_TRANSLATED': '/usr/local/lib/python2.7/dist-packages/lbforum_site/django.wsgi/news/article/news/chaxx/77892/',\n 'QUERY_STRING': '',\n 'REMOTE_ADDR': '121.235.200.169',\n 'REMOTE_PORT': '36916',\n 'REQUEST_METHOD': 'GET',\n 'REQUEST_URI': '/news/article/news/chaxx/77892/',\n 'SCRIPT_FILENAME': '/usr/local/lib/python2.7/dist-packages/lbforum_site/django.wsgi',\n 'SCRIPT_NAME': u'',\n 'SERVER_ADDR': '119.235.130.2',\n 'SERVER_ADMIN': 'webmaster@localhost',\n 'SERVER_NAME': '',\n 'SERVER_PORT': '80',\n 'SERVER_PROTOCOL': 'HTTP/1.1',\n 'SERVER_SIGNATURE': '&address&Apache/2.2.22 (Debian) Server at
Port 80&/address&\\n',\n 'SERVER_SOFTWARE': 'Apache/2.2.22 (Debian)',\n 'mod_wsgi.application_group': '|',\n 'mod_wsgi.callable_object': 'application',\n 'mod_wsgi.handler_script': '',\n 'mod_wsgi.input_chunked': '0',\n 'mod_wsgi.listener_host': '',\n 'mod_wsgi.listener_port': '80',\n 'mod_wsgi.process_group': '',\n 'mod_wsgi.request_handler': 'wsgi-script',\n 'mod_wsgi.script_reloading': '1',\n 'mod_wsgi.version': (3, 3),\n 'wsgi.errors': &mod_wsgi.Log object at 0x7f5d62f6f0b0&,\n 'wsgi.file_wrapper': &built-in method file_wrapper of mod_wsgi.Adapter object at 0x7f5d635b3828&,\n 'wsgi.input': &mod_wsgi.Input object at 0x7f5d&,\n 'wsgi.multiprocess': True,\n 'wsgi.multithread': True,\n 'wsgi.run_once': False,\n 'wsgi.url_scheme': 'http',\n 'wsgi.version': (1, 1)}&&
&function showarticle at 0x7f5d633a0410&
&RegexURLResolver urls (None:None) ^/&
urlresolvers
&module 'django.core.urlresolvers' from '/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.pyc'&
callback_kwargs
{'article_id': u'77892', 'url_path': u'news/chaxx'}
'urls'
/usr/local/lib/python2.7/dist-packages/news/views.py in showarticle
if article_id != '':
article = get_object_or_404(Article, id=article_id)
article.hits +=1
article.save()
for pic in article.attachments.all().order_by('date_uploaded'):
attimg =attimg + &&img src='/media/%s' style='max-width:930width:expression(document.body.clientWidth&930?'930px':'auto');overflow:'/&&br/&%s&br/&& % (pic,pic.description)
article.content=article.content.replace(u'*附件图片*',attimg)
u'news/chaxx'
template_name
'news/article.html'
&&WSGIRequest\npath:/news/article/news/chaxx/77892/,\nGET:&QueryDict: {}&,\nPOST:&QueryDict: {}&,\nCOOKIES:{},\nMETA:{'DOCUMENT_ROOT': '/var/www',\n 'GATEWAY_INTERFACE': 'CGI/1.1',\n 'HTTP_ACCEPT': '*/*',\n 'HTTP_HOST': '',\n 'HTTP_REFERER': '/s?wd=',\n 'HTTP_USER_AGENT': 'Mozilla/5.0 (compatible, MSIE 11, Windows NT 6.3; Trident/7.0; rv:11.0) like Gecko',\n 'HTTP_X_CURL': 'Baiduspider',\n 'PATH_INFO': u'/news/article/news/chaxx/77892/',\n 'PATH_TRANSLATED': '/usr/local/lib/python2.7/dist-packages/lbforum_site/django.wsgi/news/article/news/chaxx/77892/',\n 'QUERY_STRING': '',\n 'REMOTE_ADDR': '121.235.200.169',\n 'REMOTE_PORT': '36916',\n 'REQUEST_METHOD': 'GET',\n 'REQUEST_URI': '/news/article/news/chaxx/77892/',\n 'SCRIPT_FILENAME': '/usr/local/lib/python2.7/dist-packages/lbforum_site/django.wsgi',\n 'SCRIPT_NAME': u'',\n 'SERVER_ADDR': '119.235.130.2',\n 'SERVER_ADMIN': 'webmaster@localhost',\n 'SERVER_NAME': '',\n 'SERVER_PORT': '80',\n 'SERVER_PROTOCOL': 'HTTP/1.1',\n 'SERVER_SIGNATURE': '&address&Apache/2.2.22 (Debian) Server at
Port 80&/address&\\n',\n 'SERVER_SOFTWARE': 'Apache/2.2.22 (Debian)',\n 'mod_wsgi.application_group': '|',\n 'mod_wsgi.callable_object': 'application',\n 'mod_wsgi.handler_script': '',\n 'mod_wsgi.input_chunked': '0',\n 'mod_wsgi.listener_host': '',\n 'mod_wsgi.listener_port': '80',\n 'mod_wsgi.process_group': '',\n 'mod_wsgi.request_handler': 'wsgi-script',\n 'mod_wsgi.script_reloading': '1',\n 'mod_wsgi.version': (3, 3),\n 'wsgi.errors': &mod_wsgi.Log object at 0x7f5d62f6f0b0&,\n 'wsgi.file_wrapper': &built-in method file_wrapper of mod_wsgi.Adapter object at 0x7f5d635b3828&,\n 'wsgi.input': &mod_wsgi.Input object at 0x7f5d&,\n 'wsgi.multiprocess': True,\n 'wsgi.multithread': True,\n 'wsgi.run_once': False,\n 'wsgi.url_scheme': 'http',\n 'wsgi.version': (1, 1)}&&
&Article: 海事培训中心认真完善领航船舶示范基地建设方案&
extra_context
article_id
u'77892'
/usr/local/lib/python2.7/dist-packages/django/db/models/base.py in save
The 'force_insert' and 'force_update' parameters can be used to insist
that the &save& must be an SQL insert or update (or equivalent for
non-SQL backends), respectively. Normally, they should not be set.
if force_insert and force_update:
raise ValueError(&Cannot force both insert and updating in model saving.&)
self.save_base(using=using, force_insert=force_insert, force_update=force_update) ...
save.alters_data = True
def save_base(self, raw=False, cls=None, origin=None, force_insert=False,
force_update=False, using=None):
&Article: 海事培训中心认真完善领航船舶示范基地建设方案&
force_update
force_insert
/usr/local/lib/python2.7/dist-packages/django/db/models/base.py in save_base
# Determine whether a record with the primary key already exists.
if (force_update or (not force_insert and
manager.using(using).filter(pk=pk_val).exists())):
# It does already exist, so do an UPDATE.
if force_update or non_pks:
values = [(f, None, (raw and getattr(self, f.attname) or f.pre_save(self, False))) for f in non_pks]
if values:
rows = manager.using(using).filter(pk=pk_val)._update(values) ...
if force_update and not rows:
raise DatabaseError(&Forced update did not affect any rows.&)
record_exists = False
if not pk_set or not record_exists:
if meta.order_with_respect_to:
&class 'news.models.Article'&
[&current_user.models.CurrentUserField: user&,
&django.db.models.fields.CharField: headline&,
&django.db.models.fields.CharField: shortheadline&,
&tagging.fields.TagField: tags&,
&django.db.models.fields.CharField: newsfrom&,
&django.db.models.fields.IntegerField: hits&,
&django.db.models.fields.DateTimeField: publish&,
&django.db.models.fields.CharField: writer&,
&tinymce.models.HTMLField: content&,
&django.db.models.fields.DateTimeField: date_added&,
&django.db.models.fields.BooleanField: closecomment&,
&django.db.models.fields.BooleanField: expired&,
&django.db.models.fields.BooleanField: showpic&,
&django.db.models.fields.BooleanField: catepic&,
&django.db.models.fields.BooleanField: fly&,
&django.db.models.fields.BooleanField: float&]
&django.db.models.fields.BooleanField: float&
&Article: 海事培训中心认真完善领航船舶示范基地建设方案&
force_update
&django.db.models.manager.Manager object at 0x7f5d625ead10&
&Options for Article&
[(&current_user.models.CurrentUserField: user&, None, None),
(&django.db.models.fields.CharField: headline&,
u'\u6d77\u4e8b\u57f9\u8bad\u4e2d\u5fc3\u8ba4\u771f\u5b8c\u\u822a\u\u793a\u8303\u57fa\u5730\u5efa\u8bbe\u65b9\u6848'),
(&django.db.models.fields.CharField: shortheadline&,
u'\u6d77\u57f9\u5b8c\u\u822a\u\u793a\u8303\u57fa\u5730\u5efa\u8bbe'),
(&tagging.fields.TagField: tags&,
u'\u6d77\u4e8b\u57f9\u8bad\u4e2d\u5fc3'),
(&django.db.models.fields.CharField: newsfrom&,
u'\u738b\u9a6c\u4fdd/\u6d77\u4e8b\u57f9\u8bad\u4e2d\u5fc3 '),
(&django.db.models.fields.IntegerField: hits&, None, 702L),
(&django.db.models.fields.DateTimeField: publish&,
datetime.datetime(, 15, 27, 51)),
(&django.db.models.fields.CharField: writer&, None, u'\u5f20\u536b'),
(&tinymce.models.HTMLField: content&,
u'&p style=&text-align:&&&span style=&font-size:&&&&strong&\u6d77\u4e8b\u57f9\u8bad\u4e2d\u5fc3\u8ba4\u771f\u5b8c\u\u822a\u\u793a\u8303\u57fa\u5730\u5efa\u8bbe\u65b9\u6848&/strong&&/span&&/p&\r\n&p style=&text-align:&&&&/p&\r\n&p&&span style=&font-size:&&&&& 9\ue5\uff0c\u6d77\u4e8b\u57f9\u8bad\u4e2d\u5fc3\u59d4\u6d3e5\u4eba\u8003\u5bdf\u7ec4\ud\u8fdc\u4e9a\u6d32\u8f6e\u53c2\u89c2\uff0c\u4e3a\u5b8c\u5584&\ua\u\u793a\u8303\u57fa\u5730\u5efa\u8bbe&\u\u\u\u96c6\u7b2c\u4e00\u624b\u8d44\u\u5f3a\u\u573a\u611f\u53d7\u3002&/span&&br /&&span style=&font-size:&&&&& \u901a\u8fc7\u51e0\u4e2a\u5c0f\u65f6\u\u89c2\u8003\u5bdf\uff0c\u8003\u5bdf\u7ec4\u611f\u53d7\u\u4e2d\u8fdc\u4e9a\u6d32\u8f6e\u\u56e2\u961f\u7684\u7cbe\u6c14\u795e\u548c\u5148\u8fdb\u\u\u\u5ff5\u3002&\u\u\uff0c\u\u5bb6&\uff0c\u628a\u4e2a\u4eba\u4e0e\u\u878d\u4e3a\u4e00\u4f53\uff0c\u8ba9\u\u65f6\u523b\u\u81ea\u5df1\u662f&\u5bb6&\u\u5458\uff0c\u5e76\u4ee5\u5f3a\u70c8\u\u4efb\u611f\u548c\u5f52\u5c5e\u611f\u&\u5bb6&\u\u5168\uff0c\u521b\u9020&\u5bb6&\u\u5bcc\uff0c\u6784\u5efa&\u5bb6&\uc\u8c10\u3002&/span&&br /&&span style=&font-size:&&&&& \u4e2d\u8fdc\u4e9a\u6d32\u8f6e\u\u\u4efb\u548c\u62c5\u5f53\u52c7\u521b\u4e00\u6d41\uff0c\u5df2\u603b\u7ed3\u51fa\u4e86\u8bb8\u591a\u503c\u5f97\u63a8\u5e7f\u\u7406\u7ecf\u9a8c\uc\u6b21\u53c2\u89c2\u8003\u5bdf\uff0c\u63d0\u9ad8\u4e86\u8003\u5bdf\u7ec4\u\u5bf9\u4e2d\u8fdc\u4e9a\u6d32\u8f6e\uf\u\u8bc6\uff0c\u4e3a\u6d77\u4e8b\u57f9\u8bad\u4e2d\u5fc3\u8fdb\u4e00\u6b65\u5b8c\u5584&\ua\u\u793a\u8303\u57fa\u5730\u5efa\u8bbe&\u89c4\u\u\u4f9b\u4e86\u6709\u76ca\ue\u52a9\u3002&/span&&/p&'),
(&django.db.models.fields.DateTimeField: date_added&,
datetime.datetime(, 15, 29, 14)),
(&django.db.models.fields.BooleanField: closecomment&, None, False),
(&django.db.models.fields.BooleanField: expired&, None, False),
(&django.db.models.fields.BooleanField: showpic&, None, False),
(&django.db.models.fields.BooleanField: catepic&, None, False),
(&django.db.models.fields.BooleanField: fly&, None, False),
(&django.db.models.fields.BooleanField: float&, None, False)]
'default'
&class 'news.models.Article'&
force_insert
record_exists
/usr/local/lib/python2.7/dist-packages/django/db/models/query.py in _update
useful at that level).
assert self.query.can_filter(), \
&Cannot update a query once a slice has been taken.&
query = self.query.clone(sql.UpdateQuery)
query.add_update_fields(values)
self._result_cache = None
return query.get_compiler(self.db).execute_sql(None) ...
_update.alters_data = True
def exists(self):
if self._result_cache is None:
return self.query.has_results(using=self.db)
return bool(self._result_cache)
&django.db.models.sql.subqueries.UpdateQuery object at 0x7f5d62e23050&
[&Article: 海事培训中心认真完善领航船舶示范基地建设方案&]
[(&current_user.models.CurrentUserField: user&, None, None),
(&django.db.models.fields.CharField: headline&,
u'\u6d77\u4e8b\u57f9\u8bad\u4e2d\u5fc3\u8ba4\u771f\u5b8c\u\u822a\u\u793a\u8303\u57fa\u5730\u5efa\u8bbe\u65b9\u6848'),
(&django.db.models.fields.CharField: shortheadline&,
u'\u6d77\u57f9\u5b8c\u\u822a\u\u793a\u8303\u57fa\u5730\u5efa\u8bbe'),
(&tagging.fields.TagField: tags&,
u'\u6d77\u4e8b\u57f9\u8bad\u4e2d\u5fc3'),
(&django.db.models.fields.CharField: newsfrom&,
u'\u738b\u9a6c\u4fdd/\u6d77\u4e8b\u57f9\u8bad\u4e2d\u5fc3 '),
(&django.db.models.fields.IntegerField: hits&, None, 702L),
(&django.db.models.fields.DateTimeField: publish&,
datetime.datetime(, 15, 27, 51)),
(&django.db.models.fields.CharField: writer&, None, u'\u5f20\u536b'),
(&tinymce.models.HTMLField: content&,
u'&p style=&text-align:&&&span style=&font-size:&&&&strong&\u6d77\u4e8b\u57f9\u8bad\u4e2d\u5fc3\u8ba4\u771f\u5b8c\u\u822a\u\u793a\u8303\u57fa\u5730\u5efa\u8bbe\u65b9\u6848&/strong&&/span&&/p&\r\n&p style=&text-align:&&&&/p&\r\n&p&&span style=&font-size:&&&&& 9\ue5\uff0c\u6d77\u4e8b\u57f9\u8bad\u4e2d\u5fc3\u59d4\u6d3e5\u4eba\u8003\u5bdf\u7ec4\ud\u8fdc\u4e9a\u6d32\u8f6e\u53c2\u89c2\uff0c\u4e3a\u5b8c\u5584&\ua\u\u793a\u8303\u57fa\u5730\u5efa\u8bbe&\u\u\u\u96c6\u7b2c\u4e00\u624b\u8d44\u\u5f3a\u\u573a\u611f\u53d7\u3002&/span&&br /&&span style=&font-size:&&&&& \u901a\u8fc7\u51e0\u4e2a\u5c0f\u65f6\u\u89c2\u8003\u5bdf\uff0c\u8003\u5bdf\u7ec4\u611f\u53d7\u\u4e2d\u8fdc\u4e9a\u6d32\u8f6e\u\u56e2\u961f\u7684\u7cbe\u6c14\u795e\u548c\u5148\u8fdb\u\u\u\u5ff5\u3002&\u\u\uff0c\u\u5bb6&\uff0c\u628a\u4e2a\u4eba\u4e0e\u\u878d\u4e3a\u4e00\u4f53\uff0c\u8ba9\u\u65f6\u523b\u\u81ea\u5df1\u662f&\u5bb6&\u\u5458\uff0c\u5e76\u4ee5\u5f3a\u70c8\u\u4efb\u611f\u548c\u5f52\u5c5e\u611f\u&\u5bb6&\u\u5168\uff0c\u521b\u9020&\u5bb6&\u\u5bcc\uff0c\u6784\u5efa&\u5bb6&\uc\u8c10\u3002&/span&&br /&&span style=&font-size:&&&&& \u4e2d\u8fdc\u4e9a\u6d32\u8f6e\u\u\u4efb\u548c\u62c5\u5f53\u52c7\u521b\u4e00\u6d41\uff0c\u5df2\u603b\u7ed3\u51fa\u4e86\u8bb8\u591a\u503c\u5f97\u63a8\u5e7f\u\u7406\u7ecf\u9a8c\uc\u6b21\u53c2\u89c2\u8003\u5bdf\uff0c\u63d0\u9ad8\u4e86\u8003\u5bdf\u7ec4\u\u5bf9\u4e2d\u8fdc\u4e9a\u6d32\u8f6e\uf\u\u8bc6\uff0c\u4e3a\u6d77\u4e8b\u57f9\u8bad\u4e2d\u5fc3\u8fdb\u4e00\u6b65\u5b8c\u5584&\ua\u\u793a\u8303\u57fa\u5730\u5efa\u8bbe&\u89c4\u\u\u4f9b\u4e86\u6709\u76ca\ue\u52a9\u3002&/span&&/p&'),
(&django.db.models.fields.DateTimeField: date_added&,
datetime.datetime(, 15, 29, 14)),
(&django.db.models.fields.BooleanField: closecomment&, None, False),
(&django.db.models.fields.BooleanField: expired&, None, False),
(&django.db.models.fields.BooleanField: showpic&, None, False),
(&django.db.models.fields.BooleanField: catepic&, None, False),
(&django.db.models.fields.BooleanField: fly&, None, False),
(&django.db.models.fields.BooleanField: float&, None, False)]
/usr/local/lib/python2.7/dist-packages/django/db/models/sql/compiler.py in execute_sql
def execute_sql(self, result_type):
Execute the specified update. Returns the number of rows affected by
the primary update query. The &primary update query& is the first
non-empty query that is executed. Row counts for any subsequent,
related queries are not available.
cursor = super(SQLUpdateCompiler, self).execute_sql(result_type) ...
rows = cursor and cursor.rowcount or 0
is_empty = cursor is None
del cursor
for query in self.query.get_related_updates():
aux_rows = query.get_compiler(self.using).execute_sql(result_type)
if is_empty:
&django.db.piler.SQLUpdateCompiler object at 0x7f5d633a6d90&
result_type
/usr/local/lib/python2.7/dist-packages/django/db/models/sql/compiler.py in execute_sql
except EmptyResultSet:
if result_type == MULTI:
return empty_iter()
cursor = self.connection.cursor()
cursor.execute(sql, params) ...
if not result_type:
return cursor
if result_type == SINGLE:
if self.query.ordering_aliases:
return cursor.fetchone()[:-len(self.query.ordering_aliases)]
&django.db.backends.util.CursorDebugWrapper object at 0x7f5d633a6ed0&
&django.db.piler.SQLUpdateCompiler object at 0x7f5d633a6d90&
(u'\u6d77\u4e8b\u57f9\u8bad\u4e2d\u5fc3\u8ba4\u771f\u5b8c\u\u822a\u\u793a\u8303\u57fa\u5730\u5efa\u8bbe\u65b9\u6848',
u'\u6d77\u57f9\u5b8c\u\u822a\u\u793a\u8303\u57fa\u5730\u5efa\u8bbe',
u'\u6d77\u4e8b\u57f9\u8bad\u4e2d\u5fc3',
u'\u738b\u9a6c\u4fdd/\u6d77\u4e8b\u57f9\u8bad\u4e2d\u5fc3 ',
u' 15:27:51',
u'\u5f20\u536b',
u'&p style=&text-align:&&&span style=&font-size:&&&&strong&\u6d77\u4e8b\u57f9\u8bad\u4e2d\u5fc3\u8ba4\u771f\u5b8c\u\u822a\u\u793a\u8303\u57fa\u5730\u5efa\u8bbe\u65b9\u6848&/strong&&/span&&/p&\r\n&p style=&text-align:&&&&/p&\r\n&p&&span style=&font-size:&&&&& 9\ue5\uff0c\u6d77\u4e8b\u57f9\u8bad\u4e2d\u5fc3\u59d4\u6d3e5\u4eba\u8003\u5bdf\u7ec4\ud\u8fdc\u4e9a\u6d32\u8f6e\u53c2\u89c2\uff0c\u4e3a\u5b8c\u5584&\ua\u\u793a\u8303\u57fa\u5730\u5efa\u8bbe&\u\u\u\u96c6\u7b2c\u4e00\u624b\u8d44\u\u5f3a\u\u573a\u611f\u53d7\u3002&/span&&br /&&span style=&font-size:&&&&& \u901a\u8fc7\u51e0\u4e2a\u5c0f\u65f6\u\u89c2\u8003\u5bdf\uff0c\u8003\u5bdf\u7ec4\u611f\u53d7\u\u4e2d\u8fdc\u4e9a\u6d32\u8f6e\u\u56e2\u961f\u7684\u7cbe\u6c14\u795e\u548c\u5148\u8fdb\u\u\u\u5ff5\u3002&\u\u\uff0c\u\u5bb6&\uff0c\u628a\u4e2a\u4eba\u4e0e\u\u878d\u4e3a\u4e00\u4f53\uff0c\u8ba9\u\u65f6\u523b\u\u81ea\u5df1\u662f&\u5bb6&\u\u5458\uff0c\u5e76\u4ee5\u5f3a\u70c8\u\u4efb\u611f\u548c\u5f52\u5c5e\u611f\u&\u5bb6&\u\u5168\uff0c\u521b\u9020&\u5bb6&\u\u5bcc\uff0c\u6784\u5efa&\u5bb6&\uc\u8c10\u3002&/span&&br /&&span style=&font-size:&&&&& \u4e2d\u8fdc\u4e9a\u6d32\u8f6e\u\u\u4efb\u548c\u62c5\u5f53\u52c7\u521b\u4e00\u6d41\uff0c\u5df2\u603b\u7ed3\u51fa\u4e86\u8bb8\u591a\u503c\u5f97\u63a8\u5e7f\u\u7406\u7ecf\u9a8c\uc\u6b21\u53c2\u89c2\u8003\u5bdf\uff0c\u63d0\u9ad8\u4e86\u8003\u5bdf\u7ec4\u\u5bf9\u4e2d\u8fdc\u4e9a\u6d32\u8f6e\uf\u\u8bc6\uff0c\u4e3a\u6d77\u4e8b\u57f9\u8bad\u4e2d\u5fc3\u8fdb\u4e00\u6b65\u5b8c\u5584&\ua\u\u793a\u8303\u57fa\u5730\u5efa\u8bbe&\u89c4\u\u\u4f9b\u4e86\u6709\u76ca\ue\u52a9\u3002&/span&&/p&',
u' 15:29:14',
result_type
'UPDATE `news_article` SET `user_id` = NULL, `headline` = %s, `shortheadline` = %s, `tags` = %s, `newsfrom` = %s, `hits` = %s, `publish` = %s, `writer` = %s, `content` = %s, `date_added` = %s, `closecomment` = %s, `expired` = %s, `showpic` = %s, `catepic` = %s, `fly` = %s, `float` = %s WHERE `news_article`.`id` = %s '
/usr/local/lib/python2.7/dist-packages/django/db/backends/util.py in execute
class CursorDebugWrapper(CursorWrapper):
def execute(self, sql, params=()):
self.set_dirty()
start = time()
return self.cursor.execute(sql, params) ...
stop = time()
duration = stop - start
sql = self.db.ops.last_executed_query(self.cursor, sql, params)
self.db.queries.append({
'sql': sql,
&django.db.backends.util.CursorDebugWrapper object at 0x7f5d633a6ed0&
(u'\u6d77\u4e8b\u57f9\u8bad\u4e2d\u5fc3\u8ba4\u771f\u5b8c\u\u822a\u\u793a\u8303\u57fa\u5730\u5efa\u8bbe\u65b9\u6848',
u'\u6d77\u57f9\u5b8c\u\u822a\u\u793a\u8303\u57fa\u5730\u5efa\u8bbe',
u'\u6d77\u4e8b\u57f9\u8bad\u4e2d\u5fc3',
u'\u738b\u9a6c\u4fdd/\u6d77\u4e8b\u57f9\u8bad\u4e2d\u5fc3 ',
u' 15:27:51',
u'\u5f20\u536b',
u'&p style=&text-align:&&&span style=&font-size:&&&&strong&\u6d77\u4e8b\u57f9\u8bad\u4e2d\u5fc3\u8ba4\u771f\u5b8c\u\u822a\u\u793a\u8303\u57fa\u5730\u5efa\u8bbe\u65b9\u6848&/strong&&/span&&/p&\r\n&p style=&text-align:&&&&/p&\r\n&p&&span style=&font-size:&&&&& 9\ue5\uff0c\u6d77\u4e8b\u57f9\u8bad\u4e2d\u5fc3\u59d4\u6d3e5\u4eba\u8003\u5bdf\u7ec4\ud\u8fdc\u4e9a\u6d32\u8f6e\u53c2\u89c2\uff0c\u4e3a\u5b8c\u5584&\ua\u\u793a\u8303\u57fa\u5730\u5efa\u8bbe&\u\u\u\u96c6\u7b2c\u4e00\u624b\u8d44\u\u5f3a\u\u573a\u611f\u53d7\u3002&/span&&br /&&span style=&font-size:&&&&& \u901a\u8fc7\u51e0\u4e2a\u5c0f\u65f6\u\u89c2\u8003\u5bdf\uff0c\u8003\u5bdf\u7ec4\u611f\u53d7\u\u4e2d\u8fdc\u4e9a\u6d32\u8f6e\u\u56e2\u961f\u7684\u7cbe\u6c14\u795e\u548c\u5148\u8fdb\u\u\u\u5ff5\u3002&\u\u\uff0c\u\u5bb6&\uff0c\u628a\u4e2a\u4eba\u4e0e\u\u878d\u4e3a\u4e00\u4f53\uff0c\u8ba9\u\u65f6\u523b\u\u81ea\u5df1\u662f&\u5bb6&\u\u5458\uff0c\u5e76\u4ee5\u5f3a\u70c8\u\u4efb\u611f\u548c\u5f52\u5c5e\u611f\u&\u5bb6&\u\u5168\uff0c\u521b\u9020&\u5bb6&\u\u5bcc\uff0c\u6784\u5efa&\u5bb6&\uc\u8c10\u3002&/span&&br /&&span style=&font-size:&&&&& \u4e2d\u8fdc\u4e9a\u6d32\u8f6e\u\u\u4efb\u548c\u62c5\u5f53\u52c7\u521b\u4e00\u6d41\uff0c\u5df2\u603b\u7ed3\u51fa\u4e86\u8bb8\u591a\u503c\u5f97\u63a8\u5e7f\u\u7406\u7ecf\u9a8c\uc\u6b21\u53c2\u89c2\u8003\u5bdf\uff0c\u63d0\u9ad8\u4e86\u8003\u5bdf\u7ec4\u\u5bf9\u4e2d\u8fdc\u4e9a\u6d32\u8f6e\uf\u\u8bc6\uff0c\u4e3a\u6d77\u4e8b\u57f9\u8bad\u4e2d\u5fc3\u8fdb\u4e00\u6b65\u5b8c\u5584&\ua\u\u793a\u8303\u57fa\u5730\u5efa\u8bbe&\u89c4\u\u\u4f9b\u4e86\u6709\u76ca\ue\u52a9\u3002&/span&&/p&',
u' 15:29:14',
'UPDATE `news_article` SET `user_id` = NULL, `headline` = \'\xe6\xb5\xb7\xe4\xba\x8b\xe5\x9f\xb9\xe8\xae\xad\xe4\xb8\xad\xe5\xbf\x83\xe8\xae\xa4\xe7\x9c\x9f\xe5\xae\x8c\xe5\x96\x84\xe9\xa2\x86\xe8\x88\xaa\xe8\x88\xb9\xe8\x88\xb6\xe7\xa4\xba\xe8\x8c\x83\xe5\x9f\xba\xe5\x9c\xb0\xe5\xbb\xba\xe8\xae\xbe\xe6\x96\xb9\xe6\xa1\x88\', `shortheadline` = \'\xe6\xb5\xb7\xe5\x9f\xb9\xe5\xae\x8c\xe5\x96\x84\xe9\xa2\x86\xe8\x88\xaa\xe8\x88\xb9\xe8\x88\xb6\xe7\xa4\xba\xe8\x8c\x83\xe5\x9f\xba\xe5\x9c\xb0\xe5\xbb\xba\xe8\xae\xbe\', `tags` = \'\xe6\xb5\xb7\xe4\xba\x8b\xe5\x9f\xb9\xe8\xae\xad\xe4\xb8\xad\xe5\xbf\x83\', `newsfrom` = \'\xe7\x8e\x8b\xe9\xa9\xac\xe4\xbf\x9d/\xe6\xb5\xb7\xe4\xba\x8b\xe5\x9f\xb9\xe8\xae\xad\xe4\xb8\xad\xe5\xbf\x83 \', `hits` = 702, `publish` = \' 15:27:51\', `writer` = \'\xe5\xbc\xa0\xe5\x8d\xab\', `content` = \'&p style=\\&text-align:\\&&&span style=\\&font-size:\\&&&&strong&\xe6\xb5\xb7\xe4\xba\x8b\xe5\x9f\xb9\xe8\xae\xad\xe4\xb8\xad\xe5\xbf\x83\xe8\xae\xa4\xe7\x9c\x9f\xe5\xae\x8c\xe5\x96\x84\xe9\xa2\x86\xe8\x88\xaa\xe8\x88\xb9\xe8\x88\xb6\xe7\xa4\xba\xe8\x8c\x83\xe5\x9f\xba\xe5\x9c\xb0\xe5\xbb\xba\xe8\xae\xbe\xe6\x96\xb9\xe6\xa1\x88&/strong&&/span&&/p&\\r\\n&p style=\\&text-align:\\&&&&/p&\\r\\n&p&&span style=\\&font-size:\\&&&&& 9\xe6\x9c\x8821\xe6\x97\xa5\xef\xbc\x8c\xe6\xb5\xb7\xe4\xba\x8b\xe5\x9f\xb9\xe8\xae\xad\xe4\xb8\xad\xe5\xbf\x83\xe5\xa7\x94\xe6\xb4\xbe5\xe4\xba\xba\xe8\x80\x83\xe5\xaf\x9f\xe7\xbb\x84\xe5\x88\xb0\xe4\xb8\xad\xe8\xbf\x9c\xe4\xba\x9a\xe6\xb4\xb2\xe8\xbd\xae\xe5\x8f\x82\xe8\xa7\x82\xef\xbc\x8c\xe4\xb8\xba\xe5\xae\x8c\xe5\x96\x84&\xe9\xa2\x86\xe8\x88\xaa\xe8\x88\xb9\xe8\x88\xb6\xe7\xa4\xba\xe8\x8c\x83\xe5\x9f\xba\xe5\x9c\xb0\xe5\xbb\xba\xe8\xae\xbe&\xe7\x9a\x84\xe8\xa7\x84\xe5\x88\x92\xe6\x96\xb9\xe6\xa1\x88\xe6\x94\xb6\xe9\x9b\x86\xe7\xac\xac\xe4\xb8\x80\xe6\x89\x8b\xe8\xb5\x84\xe6\x96\x99\xe3\x80\x81\xe5\xbc\xba\xe5\x8c\x96\xe7\x8e\xb0\xe5\x9c\xba\xe6\x84\x9f\xe5\x8f\x97\xe3\x80\x82&/span&&br /&&span style=\\&font-size:\\&&&&& \xe9\x80\x9a\xe8\xbf\x87\xe5\x87\xa0\xe4\xb8\xaa\xe5\xb0\x8f\xe6\x97\xb6\xe7\x9a\x84\xe5\x8f\x82\xe8\xa7\x82\xe8\x80\x83\xe5\xaf\x9f\xef\xbc\x8c\xe8\x80\x83\xe5\xaf\x9f\xe7\xbb\x84\xe6\x84\x9f\xe5\x8f\x97\xe5\x88\xb0\xe4\xba\x86\xe4\xb8\xad\xe8\xbf\x9c\xe4\xba\x9a\xe6\xb4\xb2\xe8\xbd\xae\xe8\x88\xb9\xe5\x91\x98\xe5\x9b\xa2\xe9\x98\x9f\xe7\x9a\x84\xe7\xb2\xbe\xe6\xb0\x94\xe7\xa5\x9e\xe5\x92\x8c\xe5\x85\x88\xe8\xbf\x9b\xe7\x9a\x84\xe8\x88\xb9\xe8\x88\xb6\xe6\x96\x87\xe5\x8c\x96\xe7\x90\x86\xe5\xbf\xb5\xe3\x80\x82&\xe6\x88\x91\xe7\x9a\x84\xe8\x88\xb9\xe8\x88\xb6\xef\xbc\x8c\xe6\x88\x91\xe7\x9a\x84\xe5\xae\xb6&\xef\xbc\x8c\xe6\x8a\x8a\xe4\xb8\xaa\xe4\xba\xba\xe4\xb8\x8e\xe8\x88\xb9\xe8\x88\xb6\xe8\x9e\x8d\xe4\xb8\xba\xe4\xb8\x80\xe4\xbd\x93\xef\xbc\x8c\xe8\xae\xa9\xe8\x88\xb9\xe5\x91\x98\xe6\x97\xb6\xe5\x88\xbb\xe7\x89\xa2\xe8\xae\xb0\xe8\x87\xaa\xe5\xb7\xb1\xe6\x98\xaf&\xe5\xae\xb6&\xe7\x9a\x84\xe4\xb8\x80\xe5\x91\x98\xef\xbc\x8c\xe5\xb9\xb6\xe4\xbb\xa5\xe5\xbc\xba\xe7\x83\x88\xe7\x9a\x84\xe8\xb4\xa3\xe4\xbb\xbb\xe6\x84\x9f\xe5\x92\x8c\xe5\xbd\x92\xe5\xb1\x9e\xe6\x84\x9f\xe5\x91\xb5\xe6\x8a\xa4&\xe5\xae\xb6&\xe7\x9a\x84\xe5\xae\x89\xe5\x85\xa8\xef\xbc\x8c\xe5\x88\x9b\xe9\x80\xa0&\xe5\xae\xb6&\xe7\x9a\x84\xe8\xb4\xa2\xe5\xaf\x8c\xef\xbc\x8c\xe6\x9e\x84\xe5\xbb\xba&\xe5\xae\xb6&\xe7\x9a\x84\xe5\x92\x8c\xe8\xb0\x90\xe3\x80\x82&/span&&br /&&span style=\\&font-size:\\&&&&& \xe4\xb8\xad\xe8\xbf\x9c\xe4\xba\x9a\xe6\xb4\xb2\xe8\xbd\xae\xe8\x88\xb9\xe5\x91\x98\xe7\x94\xa8\xe8\xb4\xa3\xe4\xbb\xbb\xe5\x92\x8c\xe6\x8b\x85\xe5\xbd\x93\xe5\x8b\x87\xe5\x88\x9b\xe4\xb8\x80\xe6\xb5\x81\xef\xbc\x8c\xe5\xb7\xb2\xe6\x80\xbb\xe7\xbb\x93\xe5\x87\xba\xe4\xba\x86\xe8\xae\xb8\xe5\xa4\x9a\xe5\x80\xbc\xe5\xbe\x97\xe6\x8e\xa8\xe5\xb9\xbf\xe7\x9a\x84\xe7\xae\xa1\xe7\x90\x86\xe7\xbb\x8f\xe9\xaa\x8c\xe3\x80\x82\xe6\x9c\xac\xe6\xac\xa1\xe5\x8f\x82\xe8\xa7\x82\xe8\x80\x83\xe5\xaf\x9f\xef\xbc\x8c\xe6\x8f\x90\xe9\xab\x98\xe4\xba\x86\xe8\x80\x83\xe5\xaf\x9f\xe7\xbb\x84\xe6\x88\x90\xe5\x91\x98\xe5\xaf\xb9\xe4\xb8\xad\xe8\xbf\x9c\xe4\xba\x9a\xe6\xb4\xb2\xe8\xbd\xae\xe7\x9a\x84\xe6\x84\x9f\xe6\x80\xa7\xe8\xae\xa4\xe8\xaf\x86\xef\xbc\x8c\xe4\xb8\xba\xe6\xb5\xb7\xe4\xba\x8b\xe5\x9f\xb9\xe8\xae\xad\xe4\xb8\xad\xe5\xbf\x83\xe8\xbf\x9b\xe4\xb8\x80\xe6\xad\xa5\xe5\xae\x8c\xe5\x96\x84&\xe9\xa2\x86\xe8\x88\xaa\xe8\x88\xb9\xe8\x88\xb6\xe7\xa4\xba\xe8\x8c\x83\xe5\x9f\xba\xe5\x9c\xb0\xe5\xbb\xba\xe8\xae\xbe&\xe8\xa7\x84\xe5\x88\x92\xe6\x96\xb9\xe6\xa1\x88\xe6\x8f\x90\xe4\xbe\x9b\xe4\xba\x86\xe6\x9c\x89\xe7\x9b\x8a\xe7\x9a\x84\xe5\xb8\xae\xe5\x8a\xa9\xe3\x80\x82&/span&&/p&\', `date_added` = \' 15:29:14\', `closecomment` = 0, `expired` = 0, `showpic` = 0, `catepic` = 0, `fly` = 0, `float` = 0 WHERE `news_article`.`id` = 77892 '
/usr/local/lib/python2.7/dist-packages/django/db/backends/mysql/base.py in execute
codes_for_integrityerror = (1048,)
def __init__(self, cursor):
self.cursor = cursor
def execute(self, query, args=None):
return self.cursor.execute(query, args) ...
except Database.IntegrityError, e:
raise utils.IntegrityError, utils.IntegrityError(*tuple(e)), sys.exc_info()[2]
except Database.OperationalError, e:
# Map some error codes to IntegrityError, since they seem to be
# misclassified and Django would prefer the more logical place.
if e[0] in self.codes_for_integrityerror:
'UPDATE `news_article` SET `user_id` = NULL, `headline` = %s, `shortheadline` = %s, `tags` = %s, `newsfrom` = %s, `hits` = %s, `publish` = %s, `writer` = %s, `content` = %s, `date_added` = %s, `closecomment` = %s, `expired` = %s, `showpic` = %s, `catepic` = %s, `fly` = %s, `float` = %s WHERE `news_article`.`id` = %s '
&django.db.backends.mysql.base.CursorWrapper object at 0x7f5d633a6510&
(u'\u6d77\u4e8b\u57f9\u8bad\u4e2d\u5fc3\u8ba4\u771f\u5b8c\u\u822a\u\u793a\u8303\u57fa\u5730\u5efa\u8bbe\u65b9\u6848',
u'\u6d77\u57f9\u5b8c\u\u822a\u\u793a\u8303\u57fa\u5730\u5efa\u8bbe',
u'\u6d77\u4e8b\u57f9\u8bad\u4e2d\u5fc3',
u'\u738b\u9a6c\u4fdd/\u6d77\u4e8b\u57f9\u8bad\u4e2d\u5fc3 ',
u' 15:27:51',
u'\u5f20\u536b',
u'&p style=&text-align:&&&span style=&font-size:&&&&strong&\u6d77\u4e8b\u57f9\u8bad\u4e2d\u5fc3\u8ba4\u771f\u5b8c\u\u822a\u\u793a\u8303\u57fa\u5730\u5efa\u8bbe\u65b9\u6848&/strong&&/span&&/p&\r\n&p style=&text-align:&&&&/p&\r\n&p&&span style=&font-size:&&&&& 9\ue5\uff0c\u6d77\u4e8b\u57f9\u8bad\u4e2d\u5fc3\u59d4\u6d3e5\u4eba\u8003\u5bdf\u7ec4\ud\u8fdc\u4e9a\u6d32\u8f6e\u53c2\u89c2\uff0c\u4e3a\u5b8c\u5584&\ua\u\u793a\u8303\u57fa\u5730\u5efa\u8bbe&\u\u\u\u96c6\u7b2c\u4e00\u624b\u8d44\u\u5f3a\u\u573a\u611f\u53d7\u3002&/span&&br /&&span style=&font-size:&&&&& \u901a\u8fc7\u51e0\u4e2a\u5c0f\u65f6\u\u89c2\u8003\u5bdf\uff0c\u8003\u5bdf\u7ec4\u611f\u53d7\u\u4e2d\u8fdc\u4e9a\u6d32\u8f6e\u\u56e2\u961f\u7684\u7cbe\u6c14\u795e\u548c\u5148\u8fdb\u\u\u\u5ff5\u3002&\u\u\uff0c\u\u5bb6&\uff0c\u628a\u4e2a\u4eba\u4e0e\u\u878d\u4e3a\u4e00\u4f53\uff0c\u8ba9\u\u65f6\u523b\u\u81ea\u5df1\u662f&\u5bb6&\u\u5458\uff0c\u5e76\u4ee5\u5f3a\u70c8\u\u4efb\u611f\u548c\u5f52\u5c5e\u611f\u&\u5bb6&\u\u5168\uff0c\u521b\u9020&\u5bb6&\u\u5bcc\uff0c\u6784\u5efa&\u5bb6&\uc\u8c10\u3002&/span&&br /&&span style=&font-size:&&&&& \u4e2d\u8fdc\u4e9a\u6d32\u8f6e\u\u\u4efb\u548c\u62c5\u5f53\u52c7\u521b\u4e00\u6d41\uff0c\u5df2\u603b\u7ed3\u51fa\u4e86\u8bb8\u591a\u503c\u5f97\u63a8\u5e7f\u\u7406\u7ecf\u9a8c\uc\u6b21\u53c2\u89c2\u8003\u5bdf\uff0c\u63d0\u9ad8\u4e86\u8003\u5bdf\u7ec4\u\u5bf9\u4e2d\u8fdc\u4e9a\u6d32\u8f6e\uf\u\u8bc6\uff0c\u4e3a\u6d77\u4e8b\u57f9\u8bad\u4e2d\u5fc3\u8fdb\u4e00\u6b65\u5b8c\u5584&\ua\u\u793a\u8303\u57fa\u5730\u5efa\u8bbe&\u89c4\u\u\u4f9b\u4e86\u6709\u76ca\ue\u52a9\u3002&/span&&/p&',
u' 15:29:14',
IntegrityError(1452, 'Cannot add or update a child row: a foreign key constraint fails (`cosco`.`news_article`, CONSTRAINT `user_id_refs_id_db23561e` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`))')
/usr/local/lib/python2.7/dist-packages/MySQLdb/cursors.py in execute
self.errorhandler(self, TypeError, m)
except (SystemExit, KeyboardInterrupt):
exc, value, tb = sys.exc_info()
self.messages.append((exc, value))
self.errorhandler(self, exc, value) ...
self._executed = query
if not self._defer_warnings: self._warning_check()
def executemany(self, query, args):
&class '_mysql_exceptions.IntegrityError'&
&MySQLdb.cursors.Cursor object at 0x7f5d633a65d0&
(u'\u6d77\u4e8b\u57f9\u8bad\u4e2d\u5fc3\u8ba4\u771f\u5b8c\u\u822a\u\u793a\u8303\u57fa\u5730\u5efa\u8bbe\u65b9\u6848',
u'\u6d77\u57f9\u5b8c\u\u822a\u\u793a\u8303\u57fa\u5730\u5efa\u8bbe',
u'\u6d77\u4e8b\u57f9\u8bad\u4e2d\u5fc3',
u'\u738b\u9a6c\u4fdd/\u6d77\u4e8b\u57f9\u8bad\u4e2d\u5fc3 ',
u' 15:27:51',
u'\u5f20\u536b',
u'&p style=&text-align:&&&span style=&font-size:&&&&strong&\u6d77\u4e8b\u57f9\u8bad\u4e2d\u5fc3\u8ba4\u771f\u5b8c\u\u822a\u\u793a\u8303\u57fa\u5730\u5efa\u8bbe\u65b9\u6848&/strong&&/span&&/p&\r\n&p style=&text-align:&&&&/p&\r\n&p&&span style=&font-size:&&&&& 9\ue5\uff0c\u6d77\u4e8b\u57f9\u8bad\u4e2d\u5fc3\u59d4\u6d3e5\u4eba\u8003\u5bdf\u7ec4\ud\u8fdc\u4e9a\u6d32\u8f6e\u53c2\u89c2\uff0c\u4e3a\u5b8c\u5584&\ua\u\u793a\u8303\u57fa\u5730\u5efa\u8bbe&\u\u\u\u96c6\u7b2c\u4e00\u624b\u8d44\u\u5f3a\u\u573a\u611f\u53d7\u3002&/span&&br /&&span style=&font-size:&&&&& \u901a\u8fc7\u51e0\u4e2a\u5c0f\u65f6\u\u89c2\u8003\u5bdf\uff0c\u8003\u5bdf\u7ec4\u611f\u53d7\u\u4e2d\u8fdc\u4e9a\u6d32\u8f6e\u\u56e2\u961f\u7684\u7cbe\u6c14\u795e\u548c\u5148\u8fdb\u\u\u\u5ff5\u3002&\u\u\uff0c\u\u5bb6&\uff0c\u628a\u4e2a\u4eba\u4e0e\u\u878d\u4e3a\u4e00\u4f53\uff0c\u8ba9\u\u65f6\u523b\u\u81ea\u5df1\u662f&\u5bb6&\u\u5458\uff0c\u5e76\u4ee5\u5f3a\u70c8\u\u4efb\u611f\u548c\u5f52\u5c5e\u611f\u&\u5bb6&\u\u5168\uff0c\u521b\u9020&\u5bb6&\u\u5bcc\uff0c\u6784\u5efa&\u5bb6&\uc\u8c10\u3002&/span&&br /&&span style=&font-size:&&&&& \u4e2d\u8fdc\u4e9a\u6d32\u8f6e\u\u\u4efb\u548c\u62c5\u5f53\u52c7\u521b\u4e00\u6d41\uff0c\u5df2\u603b\u7ed3\u51fa\u4e86\u8bb8\u591a\u503c\u5f97\u63a8\u5e7f\u\u7406\u7ecf\u9a8c\uc\u6b21\u53c2\u89c2\u8003\u5bdf\uff0c\u63d0\u9ad8\u4e86\u8003\u5bdf\u7ec4\u\u5bf9\u4e2d\u8fdc\u4e9a\u6d32\u8f6e\uf\u\u8bc6\uff0c\u4e3a\u6d77\u4e8b\u57f9\u8bad\u4e2d\u5fc3\u8fdb\u4e00\u6b65\u5b8c\u5584&\ua\u\u793a\u8303\u57fa\u5730\u5efa\u8bbe&\u89c4\u\u\u4f9b\u4e86\u6709\u76ca\ue\u52a9\u3002&/span&&/p&',
u' 15:29:14',
&weakproxy at 0x7f5d63990c00 to Connection at 0x7f5d3c0139b0&
IntegrityError(1452, 'Cannot add or update a child row: a foreign key constraint fails (`cosco`.`news_article`, CONSTRAINT `user_id_refs_id_db23561e` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`))')
'UPDATE `news_article` SET `user_id` = NULL, `headline` = \'\xe6\xb5\xb7\xe4\xba\x8b\xe5\x9f\xb9\xe8\xae\xad\xe4\xb8\xad\xe5\xbf\x83\xe8\xae\xa4\xe7\x9c\x9f\xe5\xae\x8c\xe5\x96\x84\xe9\xa2\x86\xe8\x88\xaa\xe8\x88\xb9\xe8\x88\xb6\xe7\xa4\xba\xe8\x8c\x83\xe5\x9f\xba\xe5\x9c\xb0\xe5\xbb\xba\xe8\xae\xbe\xe6\x96\xb9\xe6\xa1\x88\', `shortheadline` = \'\xe6\xb5\xb7\xe5\x9f\xb9\xe5\xae\x8c\xe5\x96\x84\xe9\xa2\x86\xe8\x88\xaa\xe8\x88\xb9\xe8\x88\xb6\xe7\xa4\xba\xe8\x8c\x83\xe5\x9f\xba\xe5\x9c\xb0\xe5\xbb\xba\xe8\xae\xbe\', `tags` = \'\xe6\xb5\xb7\xe4\xba\x8b\xe5\x9f\xb9\xe8\xae\xad\xe4\xb8\xad\xe5\xbf\x83\', `newsfrom` = \'\xe7\x8e\x8b\xe9\xa9\xac\xe4\xbf\x9d/\xe6\xb5\xb7\xe4\xba\x8b\xe5\x9f\xb9\xe8\xae\xad\xe4\xb8\xad\xe5\xbf\x83 \', `hits` = 702, `publish` = \' 15:27:51\', `writer` = \'\xe5\xbc\xa0\xe5\x8d\xab\', `content` = \'&p style=\\&text-align:\\&&&span style=\\&font-size:\\&&&&strong&\xe6\xb5\xb7\xe4\xba\x8b\xe5\x9f\xb9\xe8\xae\xad\xe4\xb8\xad\xe5\xbf\x83\xe8\xae\xa4\xe7\x9c\x9f\xe5\xae\x8c\xe5\x96\x84\xe9\xa2\x86\xe8\x88\xaa\xe8\x88\xb9\xe8\x88\xb6\xe7\xa4\xba\xe8\x8c\x83\xe5\x9f\xba\xe5\x9c\xb0\xe5\xbb\xba\xe8\xae\xbe\xe6\x96\xb9\xe6\xa1\x88&/strong&&/span&&/p&\\r\\n&p style=\\&text-align:\\&&&&/p&\\r\\n&p&&span style=\\&font-size:\\&&&&& 9\xe6\x9c\x8821\xe6\x97\xa5\xef\xbc\x8c\xe6\xb5\xb7\xe4\xba\x8b\xe5\x9f\xb9\xe8\xae\xad\xe4\xb8\xad\xe5\xbf\x83\xe5\xa7\x94\xe6\xb4\xbe5\xe4\xba\xba\xe8\x80\x83\xe5\xaf\x9f\xe7\xbb\x84\xe5\x88\xb0\xe4\xb8\xad\xe8\xbf\x9c\xe4\xba\x9a\xe6\xb4\xb2\xe8\xbd\xae\xe5\x8f\x82\xe8\xa7\x82\xef\xbc\x8c\xe4\xb8\xba\xe5\xae\x8c\xe5\x96\x84&\xe9\xa2\x86\xe8\x88\xaa\xe8\x88\xb9\xe8\x88\xb6\xe7\xa4\xba\xe8\x8c\x83\xe5\x9f\xba\xe5\x9c\xb0\xe5\xbb\xba\xe8\xae\xbe&\xe7\x9a\x84\xe8\xa7\x84\xe5\x88\x92\xe6\x96\xb9\xe6\xa1\x88\xe6\x94\xb6\xe9\x9b\x86\xe7\xac\xac\xe4\xb8\x80\xe6\x89\x8b\xe8\xb5\x84\xe6\x96\x99\xe3\x80\x81\xe5\xbc\xba\xe5\x8c\x96\xe7\x8e\xb0\xe5\x9c\xba\xe6\x84\x9f\xe5\x8f\x97\xe3\x80\x82&/span&&br /&&span style=\\&font-size:\\&&&&& \xe9\x80\x9a\xe8\xbf\x87\xe5\x87\xa0\xe4\xb8\xaa\xe5\xb0\x8f\xe6\x97\xb6\xe7\x9a\x84\xe5\x8f\x82\xe8\xa7\x82\xe8\x80\x83\xe5\xaf\x9f\xef\xbc\x8c\xe8\x80\x83\xe5\xaf\x9f\xe7\xbb\x84\xe6\x84\x9f\xe5\x8f\x97\xe5\x88\xb0\xe4\xba\x86\xe4\xb8\xad\xe8\xbf\x9c\xe4\xba\x9a\xe6\xb4\xb2\xe8\xbd\xae\xe8\x88\xb9\xe5\x91\x98\xe5\x9b\xa2\xe9\x98\x9f\xe7\x9a\x84\xe7\xb2\xbe\xe6\xb0\x94\xe7\xa5\x9e\xe5\x92\x8c\xe5\x85\x88\xe8\xbf\x9b\xe7\x9a\x84\xe8\x88\xb9\xe8\x88\xb6\xe6\x96\x87\xe5\x8c\x96\xe7\x90\x86\xe5\xbf\xb5\xe3\x80\x82&\xe6\x88\x91\xe7\x9a\x84\xe8\x88\xb9\xe8\x88\xb6\xef\xbc\x8c\xe6\x88\x91\xe7\x9a\x84\xe5\xae\xb6&\xef\xbc\x8c\xe6\x8a\x8a\xe4\xb8\xaa\xe4\xba\xba\xe4\xb8\x8e\xe8\x88\xb9\xe8\x88\xb6\xe8\x9e\x8d\xe4\xb8\xba\xe4\xb8\x80\xe4\xbd\x93\xef\xbc\x8c\xe8\xae\xa9\xe8\x88\xb9\xe5\x91\x98\xe6\x97\xb6\xe5\x88\xbb\xe7\x89\xa2\xe8\xae\xb0\xe8\x87\xaa\xe5\xb7\xb1\xe6\x98\xaf&\xe5\xae\xb6&\xe7\x9a\x84\xe4\xb8\x80\xe5\x91\x98\xef\xbc\x8c\xe5\xb9\xb6\xe4\xbb\xa5\xe5\xbc\xba\xe7\x83\x88\xe7\x9a\x84\xe8\xb4\xa3\xe4\xbb\xbb\xe6\x84\x9f\xe5\x92\x8c\xe5\xbd\x92\xe5\xb1\x9e\xe6\x84\x9f\xe5\x91\xb5\xe6\x8a\xa4&\xe5\xae\xb6&\xe7\x9a\x84\xe5\xae\x89\xe5\x85\xa8\xef\xbc\x8c\xe5\x88\x9b\xe9\x80\xa0&\xe5\xae\xb6&\xe7\x9a\x84\xe8\xb4\xa2\xe5\xaf\x8c\xef\xbc\x8c\xe6\x9e\x84\xe5\xbb\xba&\xe5\xae\xb6&\xe7\x9a\x84\xe5\x92\x8c\xe8\xb0\x90\xe3\x80\x82&/span&&br /&&span style=\\&font-size:\\&&&&& \xe4\xb8\xad\xe8\xbf\x9c\xe4\xba\x9a\xe6\xb4\xb2\xe8\xbd\xae\xe8\x88\xb9\xe5\x91\x98\xe7\x94\xa8\xe8\xb4\xa3\xe4\xbb\xbb\xe5\x92\x8c\xe6\x8b\x85\xe5\xbd\x93\xe5\x8b\x87\xe5\x88\x9b\xe4\xb8\x80\xe6\xb5\x81\xef\xbc\x8c\xe5\xb7\xb2\xe6\x80\xbb\xe7\xbb\x93\xe5\x87\xba\xe4\xba\x86\xe8\xae\xb8\xe5\xa4\x9a\xe5\x80\xbc\xe5\xbe\x97\xe6\x8e\xa8\xe5\xb9\xbf\xe7\x9a\x84\xe7\xae\xa1\xe7\x90\x86\xe7\xbb\x8f\xe9\xaa\x8c\xe3\x80\x82\xe6\x9c\xac\xe6\xac\xa1\xe5\x8f\x82\xe8\xa7\x82\xe8\x80\x83\xe5\xaf\x9f\xef\xbc\x8c\xe6\x8f\x90\xe9\xab\x98\xe4\xba\x86\xe8\x80\x83\xe5\xaf\x9f\xe7\xbb\x84\xe6\x88\x90\xe5\x91\x98\xe5\xaf\xb9\xe4\xb8\xad\xe8\xbf\x9c\xe4\xba\x9a\xe6\xb4\xb2\xe8\xbd\xae\xe7\x9a\x84\xe6\x84\x9f\xe6\x80\xa7\xe8\xae\xa4\xe8\xaf\x86\xef\xbc\x8c\xe4\xb8\xba\xe6\xb5\xb7\xe4\xba\x8b\xe5\x9f\xb9\xe8\xae\xad\xe4\xb8\xad\xe5\xbf\x83\xe8\xbf\x9b\xe4\xb8\x80\xe6\xad\xa5\xe5\xae\x8c\xe5\x96\x84&\xe9\xa2\x86\xe8\x88\xaa\xe8\x88\xb9\xe8\x88\xb6\xe7\xa4\xba\xe8\x8c\x83\xe5\x9f\xba\xe5\x9c\xb0\xe5\xbb\xba\xe8\xae\xbe&\xe8\xa7\x84\xe5\x88\x92\xe6\x96\xb9\xe6\xa1\x88\xe6\x8f\x90\xe4\xbe\x9b\xe4\xba\x86\xe6\x9c\x89\xe7\x9b\x8a\xe7\x9a\x84\xe5\xb8\xae\xe5\x8a\xa9\xe3\x80\x82&/span&&/p&\', `date_added` = \' 15:29:14\', `closecomment` = 0, `expired` = 0, `showpic` = 0, `catepic` = 0, `fly` = 0, `float` = 0 WHERE `news_article`.`id` = 77892 '
/usr/local/lib/python2.7/dist-packages/MySQLdb/connections.py in defaulterrorhandler
error = errorclass, errorvalue
if cursor:
cursor.messages.append(error)
connection.messages.append(error)
del cursor
del connection
raise errorclass, errorvalue ...
re_numeric_part = re.compile(r&^(\d+)&)def numeric_part(s):
&&&Returns the leading numeric part of a string.
errorclass
&class '_mysql_exceptions.IntegrityError'&
errorvalue
IntegrityError(1452, 'Cannot add or update a child row: a foreign key constraint fails (`cosco`.`news_article`, CONSTRAINT `user_id_refs_id_db23561e` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`))')
(&class '_mysql_exceptions.IntegrityError'&,
IntegrityError(1452, 'Cannot add or update a child row: a foreign key constraint fails (`cosco`.`news_article`, CONSTRAINT `user_id_refs_id_db23561e` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`))'))
Environment:
Request Method: GET
Request URL: /news/article/news/chaxx/77892/
Django Version: 1.4.2
Python Version: 2.7.3
Installed Applications:
('django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.admin',
'photologue',
'pagination',
'registration',
'south',
'captcha',
'news',
'voting',
'lbforum',
'simpleavatar',
'djangohelper',
'onlineuser',
'attachments',
'tinymce',
'lbregistration',
'current_user',
'menus',
'cms',
'mptt',
'sekizai',
'cms.plugins.file',
'cms.plugins.flash',
'cms.plugins.googlemap',
'cms.plugins.link',
'cms.plugins.picture',
'cms.plugins.snippet',
'cms.plugins.teaser',
'cms.plugins.text',
'cms.plugins.video',
'cms.plugins.twitter',
'messages',
'ments',
'staffhome',
'checkusertable',
'pay',
'tagging',
'cuser')
Installed Middleware:
('monMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.middleware.locale.LocaleMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'pagination.middleware.PaginationMiddleware',
'onlineuser.middleware.OnlineUserMiddleware',
'current_user.middleware.CurrentUserMiddleware',
'cuser.middleware.CuserMiddleware')
Traceback:
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python2.7/dist-packages/news/views.py" in showarticle
article.save()
File "/usr/local/lib/python2.7/dist-packages/django/db/models/base.py" in save
self.save_base(using=using, force_insert=force_insert, force_update=force_update)
File "/usr/local/lib/python2.7/dist-packages/django/db/models/base.py" in save_base
rows = manager.using(using).filter(pk=pk_val)._update(values)
File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py" in _update
return query.get_compiler(self.db).execute_sql(None)
File "/usr/local/lib/python2.7/dist-packages/django/db/models/sql/compiler.py" in execute_sql
cursor = super(SQLUpdateCompiler, self).execute_sql(result_type)
File "/usr/local/lib/python2.7/dist-packages/django/db/models/sql/compiler.py" in execute_sql
cursor.execute(sql, params)
File "/usr/local/lib/python2.7/dist-packages/django/db/backends/util.py" in execute
return self.cursor.execute(sql, params)
File "/usr/local/lib/python2.7/dist-packages/django/db/backends/mysql/base.py" in execute
return self.cursor.execute(query, args)
File "/usr/local/lib/python2.7/dist-packages/MySQLdb/cursors.py" in execute
self.errorhandler(self, exc, value)
File "/usr/local/lib/python2.7/dist-packages/MySQLdb/connections.py" in defaulterrorhandler
raise errorclass, errorvalue
Exception Type: IntegrityError at /news/article/news/chaxx/77892/
Exception Value: (1452, 'Cannot add or update a child row: a foreign key constraint fails (`cosco`.`news_article`, CONSTRAINT `user_id_refs_id_db23561e` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`))')
You're seeing this error because you have DEBUG = True in your
Django settings file. Change that to False, and Django will
display a standard 500 page.}

我要回帖

更多关于 船舶船员安全告知书 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信