Skip to content
Snippets Groups Projects
Commit 223778d0 authored by Neda Moeini's avatar Neda Moeini
Browse files

Update database settings to use PostgreSQL and add psycopg dependency

parent e3f82aac
No related branches found
No related tags found
No related merge requests found
......@@ -12,3 +12,4 @@ pytest-mock
faker
coverage
social-auth-app-django==5.4.3
psycopg[binary,pool]
\ No newline at end of file
......@@ -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',
......
......@@ -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": [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment