4
我正在尝试将我的Python + Django项目部署到Google App Engine。现在它在我的本地计算机上正常工作,但是当我尝试在Google App Engine中将其作为项目运行时,出现以下错误。在Google App Engine中使用sqlite3?
ImproperlyConfigured: 'django.db.backends.sqlite3' isn't an available database backend.
Try using django.db.backends.XXX, where XXX is one of:
'dummy', 'mysql', 'oracle', 'postgresql', 'postgresql_psycopg2', 'sqlite3'
Error was: cannot import name utils
这里是指定sqlite3的数据库我的settings.py文件的一部分:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
'NAME': 'mydb.db', # Or path to database file if using sqlite3.
'USER': '', # Not used with sqlite3.
'PASSWORD': '', # Not used with sqlite3.
'HOST': '', # Set to empty string for localhost. Not used with sqlite3.
'PORT': '', # Set to empty string for default. Not used with sqlite3.
}
}
这不再是事实。从1.7.7开始Google使用SQLITE作为默认值! :) – Jon 2013-05-13 02:52:17
用dev_appserver,用于自己的存储。一旦上传应用程序,就不能使用SQLIte。 – timkofu 2014-11-27 19:26:25