diff --git a/requirements.txt b/requirements.txt index 897e939d650c08e567ef0b448ffcc406cdb7ddab..a1b9380c20310dd608358bc08ff1c634d5cc92c9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -12,3 +12,4 @@ pytest-mock faker coverage social-auth-app-django==5.4.3 +psycopg[binary,pool] \ No newline at end of file diff --git a/sage_validation/settings.py b/sage_validation/settings.py index 697c7f1b598bb467723c52f704cf9a1cf468bdd4..356c84ca4210fdfcaf38967ce9f735f07e3a27fd 100644 --- a/sage_validation/settings.py +++ b/sage_validation/settings.py @@ -84,8 +84,12 @@ WSGI_APPLICATION = "sage_validation.wsgi.application" DATABASES = { "default": { - "ENGINE": "django.db.backends.sqlite3", - "NAME": BASE_DIR / "db.sqlite3", + 'ENGINE': 'django.db.backends.postgresql', + 'NAME': os.getenv("POSTGRES_DB_NAME", "sage_validation_db"), + 'USER': os.getenv("POSTGRES_DB_USER", "sage_user"), + 'PASSWORD': os.getenv("POSTGRES_DB_PASSWORD", "sage_password"), + 'HOST': os.getenv("POSTGRES_DB_HOST", "localhost"), + 'PORT': os.getenv("POSTGRES_DB_PORT", "5432"), }, "meo": { 'ENGINE': 'mssql', diff --git a/setup.py b/setup.py index 027fc8403409a3f8bdbf6553a1939d215dc20946..f4ffd2f16271a63edda19ec5a7923d13cb73ac28 100644 --- a/setup.py +++ b/setup.py @@ -11,6 +11,7 @@ setup( "mssql-django==1.5", "djangorestframework==3.15.2", "social-auth-app-django==5.4.3", + "psycopg[binary,pool]", ], extras_require={ "prod": [