Circumeo is shutting down. Existing projects will be exportable until June 5th 2025.

sqlite database corrupt

Back to Thread List

Hi, I'm using sqlite in my project but I'm seeing this in my project:

sqlite3.DatabaseError: database disk image is malformed

any idea how this happened or how to fix?

by shakawhenthewallsfell23 on Aug. 13, 2024, 4:37 p.m.

Replies

  • At the moment, we don't support using SQLite as the application database. Circumeo provides a PostgreSQL database for all projects. You can find the connection details under the Environment Variables tab.


    The connection variable should look something like this in your settings module:


    DATABASES = {
    "default": {
    "ENGINE": "django.db.backends.postgresql",
    "NAME": os.environ["POSTGRES_DB"],
    "USER": os.environ["POSTGRES_USER"],
    "PASSWORD": os.environ["POSTGRES_PASSWORD"],
    "HOST": os.environ["POSTGRES_HOST"],
    "PORT": os.environ["POSTGRES_PORT"],
    }
    }

    by zach on Aug. 13, 2024, 9:21 p.m.
Reply to this thread