Jython、Django 和 Sqlite3
现在我使用 jython 2.5.2b2 和 django1.1.1 (lucid) 创建项目,在下载 sqlitejdbc-v056.jar 并执行一些显示的同步数据库任务后
"zxJDBC.Error: auth_permission.content_type_id may not be NULL [SQLCode: 0]"
,但仍然可以运行服务器,有人对这种情况有一些很好的例子吗?
Now I create project by using jython 2.5.2b2 and django1.1.1 (lucid) , after download sqlitejdbc-v056.jar and do some syncdb task it's shown
"zxJDBC.Error: auth_permission.content_type_id may not be NULL [SQLCode: 0]"
but still can runserver, anyone has some great example for this situation?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试在settings.py中的INSTALLED_APPS中重新排序django.contrib.auth
从
到
Try to reorder django.contrib.auth in INSTALLED_APPS in settings.py
From
To
我在 OS X 上使用 Jython 2.5.2 和 Django 1.1.1 重新创建了此错误。然而,“django-jython”包的文档(它提供了 Jython 上的 Django 和各种数据库之间的粘合)在 SQLite3 支持:
I have recreated this error on OS X with Jython 2.5.2 and Django 1.1.1. However the documentation for the 'django-jython' package (which provide the glue between Django on Jython and various databases) has the following on SQLite3 support: