代码语言:javascript复制
apscheduler.scheduler:INFO 2019-03-01 10:22:53,849 Adding job tentatively -- it will be properly scheduled when the scheduler starts
apscheduler.scheduler:INFO 2019-03-01 10:22:53,849 Adding job tentatively -- it will be properly scheduled when the scheduler starts
Do first job!
Traceback (most recent call last):
File "manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "F:PyCharmProjectsBvenvlibsite-packagesdjangocoremanagement__init__.py", line 364, in execute_from_command_line
File "F:PyCharmProjectsBvenvlibsite-packagesdjangoutilsfunctional.py", line 35, in __get__
res = instance.__dict__[self.name] = self.func(instance)
File "F:PyCharmProjectsBvenvlibsite-packagesdjangourlsresolvers.py", line 407, in url_patterns
patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
File "F:PyCharmProjectsBvenvlibsite-packagesdjangoutilsfunctional.py", line 35, in __get__
res = instance.__dict__[self.name] = self.func(instance)
File "F:PyCharmProjectsBvenvlibsite-packagesdjangourlsresolvers.py", line 400, in urlconf_module
return import_module(self.urlconf_name)
File "C:Python27Libimportlib__init__.py", line 37, in import_module
__import__(name)
File "F:PyCharmProjectsBBBurls.py", line 433, in <module>
import td.jobs # NOQA @isort:skip
File "F:PyCharmProjectsBBtdjobs.py", line 174, in <module>
deal_with_first_jobs()
File "F:PyCharmProjectsBBtdjobs.py", line 88, in deal_with_first_jobs
send_wechat_mini_app_push_message(rmds)
File "F:PyCharmProjectsBBtdpush.py", line 201, in send_wechat_mini_app_push_message
for rmd in rmds:
File "F:PyCharmProjectsBvenvlibsite-packagesdjangodbmodelsquery.py", line 250, in __iter__
self._fetch_all()
File "F:PyCharmProjectsBvenvlibsite-packagesdjangodbmodelsquery.py", line 1121, in _fetch_all
self._result_cache = list(self._iterable_class(self))
File "F:PyCharmProjectsBvenvlibsite-packagesdjangodbmodelsquery.py", line 53, in __iter__
results = compiler.execute_sql(chunked_fetch=self.chunked_fetch)
File "F:PyCharmProjectsBvenvlibsite-packagesdjangodbmodelssqlcompiler.py", line 899, in execute_sql
raise original_exception
django.db.utils.InternalError: (1054, u"Unknown column 'rms.go_datetime' in 'field list'")
刚开始以为是代码写错了,后来发现并不是,出错的地方在jobs.py中所以其实并不是代码的问题,而是在jobs中为了能够在服务启动的时候发送上一次运行停止之后遗漏的任务导致的。所以如果使用了apscheduler可以尝试将jobs.py清空再次尝试。
☆文章版权声明☆
* 网站名称:obaby@mars * 网址:https://h4ck.org.cn/ * 本文标题: 《由apscheduler引发的django.db.utils.InternalError: (1054, u”Unknown column ‘rms.go_datetime’ in ‘field list’”)》 * 本文链接:https://h4ck.org.cn/2019/03/由apscheduler引发的django-db-utils-internalerror-1054-uunknown-column-rms-go_datetime-in-field-list/ * 转载文章请标明文章来源,原文标题以及原文链接。请遵从 《署名-非商业性使用-相同方式共享 2.5 中国大陆 (CC BY-NC-SA 2.5 CN) 》许可协议。
分享文章:
相关文章:
- can’t open file ‘< unprintable file name>’: [Errno 2] No such file or directory
- ubuntu uwsgi No module named ‘django’
- django 主动抛出 403 异常
- CUDNN_STATUS_NOT_INITIALIZED
- PyDbg安装(《Python 灰帽子》)
- Django APScheduler uwsgi 定时任务重复运行
- Django REST framework foreignkey 序列化
- Django admin Foreignkey ManyToMany list_display展示
- Django 限制访问频率
- 再谈《Django 限制访问频率》