NotSupportedError in Django project using AWS App Runner

0

When I make some request to backend, the error below appears. Enter image description here Following the solutions of stackoverflow was insuccess. Please help me. I suspect I have to configure some thing in the service configuration of AWS App Runner. By the way, I am not even using SQlite3 in my project, I'm using Postgres instead.

1 Antwort
1

It looks like Django still thinks you're trying to use the default sqlite3 DB. Can you verify the "DATABASES" variable in settings.py is configured with the postgres connection string?

DATABASES = {
    "default": {
        "ENGINE": "django.db.backends.postgresql",
        "NAME": "mydatabase",
        "USER": "mydatabaseuser",
        "PASSWORD": "mypassword",
        "HOST": "127.0.0.1",
        "PORT": "5432",
    }
}

You can also check against this tutorial on deploying Django to AppRunner, postgres is covered near the middle.

profile pictureAWS
beantwortet vor 4 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen