diff --git a/fyle_xero_api/settings.py b/fyle_xero_api/settings.py index 693f6d7b..baacbac1 100644 --- a/fyle_xero_api/settings.py +++ b/fyle_xero_api/settings.py @@ -213,16 +213,9 @@ # Database # https://docs.djangoproject.com/en/2.2/ref/settings/#databases -# Defaulting django engine for qcluster -if len(sys.argv) > 0 and sys.argv[1] == "qcluster": - DATABASES = {"default": dj_database_url.config()} -else: - DATABASES = { - "default": dj_database_url.config( - engine="django_db_geventpool.backends.postgresql_psycopg2" - ) - } +DATABASES = {"default": dj_database_url.config()} +DATABASES['default']['DISABLE_SERVER_SIDE_CURSORS'] = True DATABASES["cache_db"] = {"ENGINE": "django.db.backends.sqlite3", "NAME": "cache.db"}