Using sqlite3 in Google App Engine?

I am trying to deploy my Python + Django project to Google App Engine. Now it works fine on my local computer, but when I try to run it as a project in the Google App Engine, I get the following error.

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 

Here is the part of my settings.py file that points to the sqlite3 database:

 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. } } 
+4
source share
1 answer

The Google App Engine requires that you use your own data store, not sqlite or another database. There is a project that will allow you to use fairly ordinary Django models in the App Engine called django-nonrel. You can find more customization information here: http://code.google.com/appengine/articles/django-nonrel.html

+12
source

Source: https://habr.com/ru/post/1341744/


All Articles