database or disk is full
Request Method: | GET |
---|---|
Request URL: | http://dental.ebiz365.com/ko/productlist/toothbrush-mart-4pcs-set/ |
Django Version: | 1.6.10 |
Exception Type: | OperationalError |
Exception Value: | database or disk is full |
Exception Location: | /srv/venv/local/lib/python2.7/site-packages/django/db/backends/sqlite3/base.py in execute, line 452 |
Python Executable: | /usr/local/bin/uwsgi |
Python Version: | 2.7.6 |
Python Path: | ['/srv/sites/dental_ebiz365_com/', '/srv/scms/apps/', '/srv/scms/libs/', '/srv/scms/', '/srv/venv/', '/srv/scms/apps/', '/srv/scms/libs/', '/srv/scms/', '/srv/venv/', '.', '', '/srv/venv/local/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg', '/srv/venv/local/lib/python2.7/site-packages/django_google_maps-0.2.3-py2.7.egg', '/srv/venv/local/lib/python2.7/site-packages/mock-1.0.1-py2.7.egg', '/srv/venv/local/lib/python2.7/site-packages/django_filebrowser_no_grappelli-3.1.1-py2.7.egg', '/srv/venv/local/lib/python2.7/site-packages/django_taggit-0.12a1-py2.7.egg', '/srv/venv/local/lib/python2.7/site-packages/django_taggit_autosuggest-0.2.1-py2.7.egg', '/srv/venv/local/lib/python2.7/site-packages/django_memcache_status-1.1-py2.7.egg', '/srv/venv/local/lib/python2.7/site-packages/django_inplaceedit-1.3.0-py2.7.egg', '/srv/venv/local/lib/python2.7/site-packages/django_contrib_comments-1.5-py2.7.egg', '/srv/venv/local/lib/python2.7/site-packages/django_rosetta-0.7.5-py2.7.egg', '/srv/venv/local/lib/python2.7/site-packages/django_moderation-0.3.6-py2.7.egg', '/srv/venv/local/lib/python2.7/site-packages/django_honeypot-0.4.0-py2.7.egg', '/srv/venv/local/lib/python2.7/site-packages/django_scaffolding-0.2.3-py2.7.egg', '/srv/venv/local/lib/python2.7/site-packages/django_treeadmin-0.3.1-py2.7.egg', '/srv/venv/local/lib/python2.7/site-packages/unicode_slugify-0.1.3-py2.7.egg', '/srv/venv/local/lib/python2.7/site-packages/django_backcap-0.0.0-py2.7.egg', '/srv/venv/local/lib/python2.7/site-packages/django_voting-0.2-py2.7.egg', '/srv/venv/local/lib/python2.7/site-packages/django_notification-1.0-py2.7.egg', '/srv/venv/local/lib/python2.7/site-packages/django_mptt-0.7.a-py2.7.egg', '/srv/venv/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg', '/srv/venv/lib/python2.7/site-packages/django_google_maps-0.2.3-py2.7.egg', '/srv/venv/lib/python2.7/site-packages/mock-1.0.1-py2.7.egg', '/srv/venv/lib/python2.7/site-packages/django_filebrowser_no_grappelli-3.1.1-py2.7.egg', '/srv/venv/lib/python2.7/site-packages/django_taggit-0.12a1-py2.7.egg', '/srv/venv/lib/python2.7/site-packages/django_taggit_autosuggest-0.2.1-py2.7.egg', '/srv/venv/lib/python2.7/site-packages/django_memcache_status-1.1-py2.7.egg', '/srv/venv/lib/python2.7/site-packages/django_inplaceedit-1.3.0-py2.7.egg', '/srv/venv/lib/python2.7/site-packages/django_contrib_comments-1.5-py2.7.egg', '/srv/venv/lib/python2.7/site-packages/django_rosetta-0.7.5-py2.7.egg', '/srv/venv/lib/python2.7/site-packages/django_moderation-0.3.6-py2.7.egg', '/srv/venv/lib/python2.7/site-packages/django_honeypot-0.4.0-py2.7.egg', '/srv/venv/lib/python2.7/site-packages/django_scaffolding-0.2.3-py2.7.egg', '/srv/venv/lib/python2.7/site-packages/django_treeadmin-0.3.1-py2.7.egg', '/srv/venv/lib/python2.7/site-packages/unicode_slugify-0.1.3-py2.7.egg', '/srv/venv/lib/python2.7/site-packages/django_backcap-0.0.0-py2.7.egg', '/srv/venv/lib/python2.7/site-packages/django_voting-0.2-py2.7.egg', '/srv/venv/lib/python2.7/site-packages/django_notification-1.0-py2.7.egg', '/srv/venv/lib/python2.7/site-packages/django_mptt-0.7.a-py2.7.egg', '/srv/venv/lib/python2.7', '/srv/venv/lib/python2.7/plat-x86_64-linux-gnu', '/srv/venv/lib/python2.7/lib-tk', '/srv/venv/lib/python2.7/lib-old', '/srv/venv/lib/python2.7/lib-dynload', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/srv/venv/local/lib/python2.7/site-packages', '/srv/venv/lib/python2.7/site-packages'] |
Server time: | 금요일, 29 3월 2024 16:28:30 +0900 |
/srv/venv/local/lib/python2.7/site-packages/django/core/handlers/base.py
in get_response
response = middleware_method(request, callback, callback_args, callback_kwargs)
if response:
break
if response is None:
wrapped_callback = self.make_view_atomic(callback)
try:
response = wrapped_callback(request, *callback_args, **callback_kwargs)...
except Exception as 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)
Variable | Value |
---|---|
e | OperationalError('database or disk is full',) |
callback_args | () |
resolver_match | ResolverMatch(func=<function ProductlistDetail at 0x7f22e0285de8>, args=(), kwargs={'slug': u'toothbrush-mart-4pcs-set'}, url_name='productlist-detail', app_name='None', namespace='') |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f22e3a78cd0>> |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f22e6f86c10> |
request | "<WSGIRequest\npath:/ko/productlist/toothbrush-mart-4pcs-set/,\nGET:<QueryDict: {}>,\nPOST:<QueryDict: {}>,\nCOOKIES:{},\nMETA:{'CONTENT_LENGTH': '',\n 'CONTENT_TYPE': '',\n u'CSRF_COOKIE': u'p6a2AcG78oMczRSkGQnxDfqLv42y4cA9',\n 'DOCUMENT_ROOT': '/usr/share/nginx/html',\n 'HTTP_ACCEPT': '*/*',\n 'HTTP_HOST': 'dental.ebiz365.com',\n 'HTTP_USER_AGENT': 'claudebot',\n 'PATH_INFO': u'/ko/productlist/toothbrush-mart-4pcs-set/',\n 'QUERY_STRING': '',\n 'REMOTE_ADDR': '44.210.240.31',\n 'REMOTE_PORT': '39448',\n 'REQUEST_METHOD': 'GET',\n 'REQUEST_URI': '/ko/productlist/toothbrush-mart-4pcs-set/',\n u'SCRIPT_NAME': u'',\n 'SERVER_NAME': 'dental.ebiz365.com',\n 'SERVER_PORT': '80',\n 'SERVER_PROTOCOL': 'HTTP/1.1',\n 'UWSGI_SCHEME': 'http',\n 'uwsgi.node': 'ip-172-31-20-90',\n 'uwsgi.version': '2.0.13.1',\n 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f22e3c4d6f0>,\n 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>,\n 'wsgi.input': <uwsgi._Input object at 0x7f22e04757e0>,\n 'wsgi.multiprocess': False,\n 'wsgi.multithread': False,\n 'wsgi.run_once': False,\n 'wsgi.url_scheme': 'http',\n 'wsgi.version': (1, 0)}>" |
callback | <function ProductlistDetail at 0x7f22e0285de8> |
wrapped_callback | <function ProductlistDetail at 0x7f22e0285de8> |
resolver | <RegexURLResolver 'dental_ebiz365_com.urls' (None:None) ^/> |
callback_kwargs | {'slug': u'toothbrush-mart-4pcs-set'} |
response | None |
urlconf | 'dental_ebiz365_com.urls' |
/srv/venv/local/lib/python2.7/site-packages/django/views/generic/base.py
in view
def view(request, *args, **kwargs):
self = cls(**initkwargs)
if hasattr(self, 'get') and not hasattr(self, 'head'):
self.head = self.get
self.request = request
self.args = args
self.kwargs = kwargs
return self.dispatch(request, *args, **kwargs)...
# take name and docstring from class
update_wrapper(view, cls, updated=())
# and possible attributes set by decorators
# like csrf_exempt from dispatch
Variable | Value |
---|---|
initkwargs | {} |
self | <productlist.views.ProductlistDetail object at 0x7f22e0172490> |
args | () |
request | "<WSGIRequest\npath:/ko/productlist/toothbrush-mart-4pcs-set/,\nGET:<QueryDict: {}>,\nPOST:<QueryDict: {}>,\nCOOKIES:{},\nMETA:{'CONTENT_LENGTH': '',\n 'CONTENT_TYPE': '',\n u'CSRF_COOKIE': u'p6a2AcG78oMczRSkGQnxDfqLv42y4cA9',\n 'DOCUMENT_ROOT': '/usr/share/nginx/html',\n 'HTTP_ACCEPT': '*/*',\n 'HTTP_HOST': 'dental.ebiz365.com',\n 'HTTP_USER_AGENT': 'claudebot',\n 'PATH_INFO': u'/ko/productlist/toothbrush-mart-4pcs-set/',\n 'QUERY_STRING': '',\n 'REMOTE_ADDR': '44.210.240.31',\n 'REMOTE_PORT': '39448',\n 'REQUEST_METHOD': 'GET',\n 'REQUEST_URI': '/ko/productlist/toothbrush-mart-4pcs-set/',\n u'SCRIPT_NAME': u'',\n 'SERVER_NAME': 'dental.ebiz365.com',\n 'SERVER_PORT': '80',\n 'SERVER_PROTOCOL': 'HTTP/1.1',\n 'UWSGI_SCHEME': 'http',\n 'uwsgi.node': 'ip-172-31-20-90',\n 'uwsgi.version': '2.0.13.1',\n 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f22e3c4d6f0>,\n 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>,\n 'wsgi.input': <uwsgi._Input object at 0x7f22e04757e0>,\n 'wsgi.multiprocess': False,\n 'wsgi.multithread': False,\n 'wsgi.run_once': False,\n 'wsgi.url_scheme': 'http',\n 'wsgi.version': (1, 0)}>" |
kwargs | {'slug': u'toothbrush-mart-4pcs-set'} |
cls | <class 'productlist.views.ProductlistDetail'> |
/srv/venv/local/lib/python2.7/site-packages/django/views/generic/base.py
in dispatch
# Try to dispatch to the right method; if a method doesn't exist,
# defer to the error handler. Also defer to the error handler if the
# request method isn't on the approved list.
if request.method.lower() in self.http_method_names:
handler = getattr(self, request.method.lower(), self.http_method_not_allowed)
else:
handler = self.http_method_not_allowed
return handler(request, *args, **kwargs)...
def http_method_not_allowed(self, request, *args, **kwargs):
logger.warning('Method Not Allowed (%s): %s', request.method, request.path,
extra={
'status_code': 405,
'request': self.request
Variable | Value |
---|---|
self | <productlist.views.ProductlistDetail object at 0x7f22e0172490> |
handler | <bound method ProductlistDetail.get of <productlist.views.ProductlistDetail object at 0x7f22e0172490>> |
request | "<WSGIRequest\npath:/ko/productlist/toothbrush-mart-4pcs-set/,\nGET:<QueryDict: {}>,\nPOST:<QueryDict: {}>,\nCOOKIES:{},\nMETA:{'CONTENT_LENGTH': '',\n 'CONTENT_TYPE': '',\n u'CSRF_COOKIE': u'p6a2AcG78oMczRSkGQnxDfqLv42y4cA9',\n 'DOCUMENT_ROOT': '/usr/share/nginx/html',\n 'HTTP_ACCEPT': '*/*',\n 'HTTP_HOST': 'dental.ebiz365.com',\n 'HTTP_USER_AGENT': 'claudebot',\n 'PATH_INFO': u'/ko/productlist/toothbrush-mart-4pcs-set/',\n 'QUERY_STRING': '',\n 'REMOTE_ADDR': '44.210.240.31',\n 'REMOTE_PORT': '39448',\n 'REQUEST_METHOD': 'GET',\n 'REQUEST_URI': '/ko/productlist/toothbrush-mart-4pcs-set/',\n u'SCRIPT_NAME': u'',\n 'SERVER_NAME': 'dental.ebiz365.com',\n 'SERVER_PORT': '80',\n 'SERVER_PROTOCOL': 'HTTP/1.1',\n 'UWSGI_SCHEME': 'http',\n 'uwsgi.node': 'ip-172-31-20-90',\n 'uwsgi.version': '2.0.13.1',\n 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f22e3c4d6f0>,\n 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>,\n 'wsgi.input': <uwsgi._Input object at 0x7f22e04757e0>,\n 'wsgi.multiprocess': False,\n 'wsgi.multithread': False,\n 'wsgi.run_once': False,\n 'wsgi.url_scheme': 'http',\n 'wsgi.version': (1, 0)}>" |
args | () |
kwargs | {'slug': u'toothbrush-mart-4pcs-set'} |
/srv/venv/local/lib/python2.7/site-packages/django/views/generic/detail.py
in get
class BaseDetailView(SingleObjectMixin, View):
"""
A base view for displaying a single object
"""
def get(self, request, *args, **kwargs):
self.object = self.get_object()
context = self.get_context_data(object=self.object)...
return self.render_to_response(context)
class SingleObjectTemplateResponseMixin(TemplateResponseMixin):
template_name_field = None
template_name_suffix = '_detail'
Variable | Value |
---|---|
self | <productlist.views.ProductlistDetail object at 0x7f22e0172490> |
args | () |
request | "<WSGIRequest\npath:/ko/productlist/toothbrush-mart-4pcs-set/,\nGET:<QueryDict: {}>,\nPOST:<QueryDict: {}>,\nCOOKIES:{},\nMETA:{'CONTENT_LENGTH': '',\n 'CONTENT_TYPE': '',\n u'CSRF_COOKIE': u'p6a2AcG78oMczRSkGQnxDfqLv42y4cA9',\n 'DOCUMENT_ROOT': '/usr/share/nginx/html',\n 'HTTP_ACCEPT': '*/*',\n 'HTTP_HOST': 'dental.ebiz365.com',\n 'HTTP_USER_AGENT': 'claudebot',\n 'PATH_INFO': u'/ko/productlist/toothbrush-mart-4pcs-set/',\n 'QUERY_STRING': '',\n 'REMOTE_ADDR': '44.210.240.31',\n 'REMOTE_PORT': '39448',\n 'REQUEST_METHOD': 'GET',\n 'REQUEST_URI': '/ko/productlist/toothbrush-mart-4pcs-set/',\n u'SCRIPT_NAME': u'',\n 'SERVER_NAME': 'dental.ebiz365.com',\n 'SERVER_PORT': '80',\n 'SERVER_PROTOCOL': 'HTTP/1.1',\n 'UWSGI_SCHEME': 'http',\n 'uwsgi.node': 'ip-172-31-20-90',\n 'uwsgi.version': '2.0.13.1',\n 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f22e3c4d6f0>,\n 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>,\n 'wsgi.input': <uwsgi._Input object at 0x7f22e04757e0>,\n 'wsgi.multiprocess': False,\n 'wsgi.multithread': False,\n 'wsgi.run_once': False,\n 'wsgi.url_scheme': 'http',\n 'wsgi.version': (1, 0)}>" |
kwargs | {'slug': u'toothbrush-mart-4pcs-set'} |
/srv/sites/dental_ebiz365_com/productlist/views.py
in get_context_data
model = Productlist
queryset = Productlist.objects.filter(is_public=True)
template_name = 'productlist/productlist_detail.html'
def get_context_data(self, **kwargs):
context = super(ProductlistDetail, self).get_context_data(**kwargs)
self.object.add_n_views()
self.object.save()...
return context
#------------------------------------------------------------------------------
# Tag and Category, to be mixing with ListView
class ProductlistTagIndexView(ProductlistTagMixin, ListView):
Variable | Value |
---|---|
self | <productlist.views.ProductlistDetail object at 0x7f22e0172490> |
context | {u'object': <Productlist: 마트용 칫솔 4pcs Set>, 'productlist': <Productlist: 마트용 칫솔 4pcs Set>, u'view': <productlist.views.ProductlistDetail object at 0x7f22e0172490>} |
kwargs | {'object': <Productlist: 마트용 칫솔 4pcs Set>} |
/srv/venv/local/lib/python2.7/site-packages/django/db/models/base.py
in save
DeferredAttribute)]
loaded_fields = field_names.difference(deferred_fields)
if loaded_fields:
update_fields = frozenset(loaded_fields)
self.save_base(using=using, force_insert=force_insert,
force_update=force_update, update_fields=update_fields)...
save.alters_data = True
def save_base(self, raw=False, force_insert=False,
force_update=False, using=None, update_fields=None):
"""
Handles the parts of saving which should be done only once per save,
Variable | Value |
---|---|
update_fields | None |
using | 'default' |
self | <Productlist: 마트용 칫솔 4pcs Set> |
force_update | False |
force_insert | False |
/srv/venv/local/lib/python2.7/site-packages/django/db/models/base.py
in save_base
meta = cls._meta
if not meta.auto_created:
signals.pre_save.send(sender=origin, instance=self, raw=raw, using=using,
update_fields=update_fields)
with transaction.commit_on_success_unless_managed(using=using, savepoint=False):
if not raw:
self._save_parents(cls, using, update_fields)
updated = self._save_table(raw, cls, force_insert, force_update, using, update_fields)...
# Store the database on which the object was saved
self._state.db = using
# Once saved, this is no longer a to-be-added instance.
self._state.adding = False
# Signal that the save is complete
Variable | Value |
---|---|
origin | <class 'productlist.models.Productlist'> |
update_fields | None |
force_insert | False |
self | <Productlist: 마트용 칫솔 4pcs Set> |
force_update | False |
raw | False |
meta | <Options for Productlist> |
using | 'default' |
cls | <class 'productlist.models.Productlist'> |
/srv/venv/local/lib/python2.7/site-packages/django/db/models/base.py
in _save_table
# If possible, try an UPDATE. If that doesn't update anything, do an INSERT.
if pk_set and not force_insert:
base_qs = cls._base_manager.using(using)
values = [(f, None, (getattr(self, f.attname) if raw else f.pre_save(self, False)))
for f in non_pks]
forced_update = update_fields or force_update
updated = self._do_update(base_qs, using, pk_val, values, update_fields,
forced_update)...
if force_update and not updated:
raise DatabaseError("Forced update did not affect any rows.")
if update_fields and not updated:
raise DatabaseError("Save with update_fields did not affect any rows.")
if not updated:
if meta.order_with_respect_to:
Variable | Value |
---|---|
forced_update | False |
non_pks | [<django.db.models.fields.CharField: title>, <modeltranslation.fields.TranslationCharField: title_ko>, <modeltranslation.fields.TranslationCharField: title_en>, <django.db.models.fields.SlugField: slug>, <django.db.models.fields.TextField: summary>, <modeltranslation.fields.TranslationTextField: summary_ko>, <modeltranslation.fields.TranslationTextField: summary_en>, <django.db.models.fields.TextField: search_keyword>, <modeltranslation.fields.TranslationTextField: search_keyword_ko>, <modeltranslation.fields.TranslationTextField: search_keyword_en>, <django.db.models.fields.CharField: font_color>, <modeltranslation.fields.TranslationCharField: font_color_ko>, <modeltranslation.fields.TranslationCharField: font_color_en>, <django_resized.forms.ResizedImageField: background_image>, <modeltranslation.fields.TranslationResizedImageField: background_image_ko>, <modeltranslation.fields.TranslationResizedImageField: background_image_en>, <tinymce.models.HTMLField: content>, <modeltranslation.fields.TranslationHTMLField: content_ko>, <modeltranslation.fields.TranslationHTMLField: content_en>, <django.db.models.fields.CharField: canonical>, <modeltranslation.fields.TranslationCharField: canonical_ko>, <modeltranslation.fields.TranslationCharField: canonical_en>, <django_resized.forms.ResizedImageField: photo>, <modeltranslation.fields.TranslationResizedImageField: photo_ko>, <modeltranslation.fields.TranslationResizedImageField: photo_en>, <django.db.models.fields.CharField: photo_align>, <django.db.models.fields.files.FileField: file>, <modeltranslation.fields.TranslationFileField: file_ko>, <modeltranslation.fields.TranslationFileField: file_en>, <django.db.models.fields.CharField: file_name>, <modeltranslation.fields.TranslationCharField: file_name_ko>, <modeltranslation.fields.TranslationCharField: file_name_en>, <django.db.models.fields.CharField: text_align>, <django.db.models.fields.CharField: page_style>, <django.db.models.fields.CharField: template>, <django.db.models.fields.CharField: tab_grid>, <django.db.models.fields.CharField: text_grid>, <django.db.models.fields.CharField: image_grid>, <django.db.models.fields.CharField: file_grid>, <django.db.models.fields.CharField: video_grid>, <django.db.models.fields.CharField: extra_grid>, <django.db.models.fields.CharField: normal_header_title>, <modeltranslation.fields.TranslationCharField: normal_header_title_ko>, <modeltranslation.fields.TranslationCharField: normal_header_title_en>, <django.db.models.fields.CharField: tab_header_title>, <modeltranslation.fields.TranslationCharField: tab_header_title_ko>, <modeltranslation.fields.TranslationCharField: tab_header_title_en>, <django.db.models.fields.CharField: text_header_title>, <modeltranslation.fields.TranslationCharField: text_header_title_ko>, <modeltranslation.fields.TranslationCharField: text_header_title_en>, <django.db.models.fields.CharField: image_header_title>, <modeltranslation.fields.TranslationCharField: image_header_title_ko>, <modeltranslation.fields.TranslationCharField: image_header_title_en>, <django.db.models.fields.CharField: file_header_title>, <modeltranslation.fields.TranslationCharField: file_header_title_ko>, <modeltranslation.fields.TranslationCharField: file_header_title_en>, <django.db.models.fields.CharField: video_header_title>, <modeltranslation.fields.TranslationCharField: video_header_title_ko>, <modeltranslation.fields.TranslationCharField: video_header_title_en>, <django.db.models.fields.CharField: extra_header_title>, <modeltranslation.fields.TranslationCharField: extra_header_title_ko>, <modeltranslation.fields.TranslationCharField: extra_header_title_en>, <django.db.models.fields.CharField: normal_header_sub>, <modeltranslation.fields.TranslationCharField: normal_header_sub_ko>, <modeltranslation.fields.TranslationCharField: normal_header_sub_en>, <django.db.models.fields.CharField: tab_header_sub>, <modeltranslation.fields.TranslationCharField: tab_header_sub_ko>, <modeltranslation.fields.TranslationCharField: tab_header_sub_en>, <django.db.models.fields.CharField: text_header_sub>, <modeltranslation.fields.TranslationCharField: text_header_sub_ko>, <modeltranslation.fields.TranslationCharField: text_header_sub_en>, <django.db.models.fields.CharField: image_header_sub>, <modeltranslation.fields.TranslationCharField: image_header_sub_ko>, <modeltranslation.fields.TranslationCharField: image_header_sub_en>, <django.db.models.fields.CharField: file_header_sub>, <modeltranslation.fields.TranslationCharField: file_header_sub_ko>, <modeltranslation.fields.TranslationCharField: file_header_sub_en>, <django.db.models.fields.CharField: video_header_sub>, <modeltranslation.fields.TranslationCharField: video_header_sub_ko>, <modeltranslation.fields.TranslationCharField: video_header_sub_en>, <django.db.models.fields.CharField: extra_header_sub>, <modeltranslation.fields.TranslationCharField: extra_header_sub_ko>, <modeltranslation.fields.TranslationCharField: extra_header_sub_en>, <django.db.models.fields.CharField: normal_class_name>, <django.db.models.fields.CharField: tab_class_name>, <django.db.models.fields.CharField: text_class_name>, <django.db.models.fields.CharField: image_class_name>, <django.db.models.fields.CharField: file_class_name>, <django.db.models.fields.CharField: video_class_name>, <django.db.models.fields.CharField: extra_class_name>, <django.db.models.fields.CharField: tab1_grid>, <django.db.models.fields.CharField: tab2_grid>, <django.db.models.fields.CharField: tab3_grid>, <django.db.models.fields.CharField: tab4_grid>, <django.db.models.fields.CharField: tab5_grid>, <django.db.models.fields.CharField: tab1_title>, <modeltranslation.fields.TranslationCharField: tab1_title_ko>, <modeltranslation.fields.TranslationCharField: tab1_title_en>, <django.db.models.fields.CharField: tab2_title>, <modeltranslation.fields.TranslationCharField: tab2_title_ko>, <modeltranslation.fields.TranslationCharField: tab2_title_en>, <django.db.models.fields.CharField: tab3_title>, <modeltranslation.fields.TranslationCharField: tab3_title_ko>, <modeltranslation.fields.TranslationCharField: tab3_title_en>, <django.db.models.fields.CharField: tab4_title>, <modeltranslation.fields.TranslationCharField: tab4_title_ko>, <modeltranslation.fields.TranslationCharField: tab4_title_en>, <django.db.models.fields.CharField: tab5_title>, <modeltranslation.fields.TranslationCharField: tab5_title_ko>, <modeltranslation.fields.TranslationCharField: tab5_title_en>, <django.db.models.fields.CharField: tab1_sub_title>, <modeltranslation.fields.TranslationCharField: tab1_sub_title_ko>, <modeltranslation.fields.TranslationCharField: tab1_sub_title_en>, <django.db.models.fields.CharField: tab2_sub_title>, <modeltranslation.fields.TranslationCharField: tab2_sub_title_ko>, <modeltranslation.fields.TranslationCharField: tab2_sub_title_en>, <django.db.models.fields.CharField: tab3_sub_title>, <modeltranslation.fields.TranslationCharField: tab3_sub_title_ko>, <modeltranslation.fields.TranslationCharField: tab3_sub_title_en>, <django.db.models.fields.CharField: tab4_sub_title>, <modeltranslation.fields.TranslationCharField: tab4_sub_title_ko>, <modeltranslation.fields.TranslationCharField: tab4_sub_title_en>, <django.db.models.fields.CharField: tab5_sub_title>, <modeltranslation.fields.TranslationCharField: tab5_sub_title_ko>, <modeltranslation.fields.TranslationCharField: tab5_sub_title_en>, <django.db.models.fields.BooleanField: is_public>, <django.db.models.fields.BooleanField: is_headline>, <django.db.models.fields.BooleanField: is_comments>, <django.db.models.fields.related.ForeignKey: author>, <django.db.models.fields.BooleanField: to_facebook>, <django.db.models.fields.BooleanField: to_flickr>, <django.db.models.fields.BooleanField: to_googleplus>, <django.db.models.fields.BooleanField: to_instagram>, <django.db.models.fields.BooleanField: to_pinterest>, <django.db.models.fields.BooleanField: to_slideshare>, <django.db.models.fields.BooleanField: to_twitter>, <django.db.models.fields.BooleanField: to_youtube>, <django.db.models.fields.PositiveIntegerField: n_likes>, <django.db.models.fields.PositiveIntegerField: n_dislikes>, <django.db.models.fields.PositiveIntegerField: n_emailfriend>, <django.db.models.fields.PositiveIntegerField: n_print>, <django.db.models.fields.PositiveIntegerField: n_views>, <django.db.models.fields.PositiveIntegerField: n_comments>, <django.db.models.fields.PositiveIntegerField: n_fbshare>, <django.db.models.fields.PositiveIntegerField: n_twshare>, <django.db.models.fields.PositiveIntegerField: n_gplus>, <django.db.models.fields.DateTimeField: new_date>, <django.db.models.fields.DateTimeField: up_date>, <django.db.models.fields.DateTimeField: from_date>, <django.db.models.fields.DateTimeField: to_date>] |
updated | False |
update_fields | None |
f | <django.db.models.fields.DateTimeField: to_date> |
base_qs | [<Productlist: 녹키토 플러스 치약, 혀클리너>, <Productlist: 플레인하우스 선물셋트>, <Productlist: 플레인하우스 무불소 치약>, <Productlist: 플레인하우스 슈퍼슬림 숯 칫솔>, <Productlist: 플레인하우스 쿼드클린 칫솔>, <Productlist: 니텐스 트리플 이펙트>, <Productlist: 니텐스 토탈케어 칫솔>, <Productlist: 니텐스 인디게이터 칫솔>, <Productlist: 니텐스 슈퍼그립 칫솔>, <Productlist: 니텐스 성인용 칫솔>, <Productlist: 덴탈케어 숯 칫솔 3+1pcs set>, <Productlist: 덴탈케어 숯칫솔 4pcs Set>, <Productlist: 티스웰 칫솔 4pcs Set>, <Productlist: 덴탈케어 칫솔 3, 4, 8pcs Set>, <Productlist: 마트용 칫솔 4pcs Set>, <Productlist: 치카차카 어린이 금 칫솔>, <Productlist: 하야치 칫솔>, <Productlist: 덴탈케어 아쿠아 칫솔>, <Productlist: 녹키토 컴팩트 칫솔>, <Productlist: 녹키토 칫솔>, '...(remaining elements truncated)...'] |
self | <Productlist: 마트용 칫솔 4pcs Set> |
force_update | False |
raw | False |
meta | <Options for Productlist> |
values | Error in formatting: 'ascii' codec can't encode characters in position 67-69: ordinal not in range(128) |
pk_val | 6 |
pk_set | True |
using | 'default' |
force_insert | False |
cls | <class 'productlist.models.Productlist'> |
/srv/venv/local/lib/python2.7/site-packages/django/db/models/base.py
in _do_update
return update_fields is not None or filtered.exists()
if self._meta.select_on_save and not forced_update:
if filtered.exists():
filtered._update(values)
return True
else:
return False
return filtered._update(values) > 0...
def _do_insert(self, manager, using, fields, update_pk, raw):
"""
Do an INSERT. If update_pk is defined then this method should return
the new pk for the model.
"""
Variable | Value |
---|---|
forced_update | False |
update_fields | None |
base_qs | [<Productlist: 녹키토 플러스 치약, 혀클리너>, <Productlist: 플레인하우스 선물셋트>, <Productlist: 플레인하우스 무불소 치약>, <Productlist: 플레인하우스 슈퍼슬림 숯 칫솔>, <Productlist: 플레인하우스 쿼드클린 칫솔>, <Productlist: 니텐스 트리플 이펙트>, <Productlist: 니텐스 토탈케어 칫솔>, <Productlist: 니텐스 인디게이터 칫솔>, <Productlist: 니텐스 슈퍼그립 칫솔>, <Productlist: 니텐스 성인용 칫솔>, <Productlist: 덴탈케어 숯 칫솔 3+1pcs set>, <Productlist: 덴탈케어 숯칫솔 4pcs Set>, <Productlist: 티스웰 칫솔 4pcs Set>, <Productlist: 덴탈케어 칫솔 3, 4, 8pcs Set>, <Productlist: 마트용 칫솔 4pcs Set>, <Productlist: 치카차카 어린이 금 칫솔>, <Productlist: 하야치 칫솔>, <Productlist: 덴탈케어 아쿠아 칫솔>, <Productlist: 녹키토 컴팩트 칫솔>, <Productlist: 녹키토 칫솔>, '...(remaining elements truncated)...'] |
self | <Productlist: 마트용 칫솔 4pcs Set> |
values | Error in formatting: 'ascii' codec can't encode characters in position 67-69: ordinal not in range(128) |
pk_val | 6 |
filtered | [<Productlist: 마트용 칫솔 4pcs Set>] |
using | 'default' |
/srv/venv/local/lib/python2.7/site-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)...