Spaces:
Runtime error
Runtime error
thejagstudio
commited on
Commit
•
3731d06
1
Parent(s):
d0d29d6
Update cloudStorage/settings.py
Browse files- cloudStorage/settings.py +10 -1
cloudStorage/settings.py
CHANGED
@@ -81,7 +81,16 @@ WSGI_APPLICATION = 'cloudStorage.wsgi.application'
|
|
81 |
# Database
|
82 |
# https://docs.djangoproject.com/en/4.0/ref/settings/#databases
|
83 |
|
84 |
-
DATABASES =
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
85 |
# DATABASES = {
|
86 |
# 'default': {
|
87 |
# 'ENGINE': 'django.db.backends.sqlite3',
|
|
|
81 |
# Database
|
82 |
# https://docs.djangoproject.com/en/4.0/ref/settings/#databases
|
83 |
|
84 |
+
DATABASES = {
|
85 |
+
'default': {
|
86 |
+
'ENGINE': 'django.db.backends.postgresql',
|
87 |
+
'NAME': 'postgres',
|
88 |
+
'USER': 'postgres.dfnawdyzwhxsjsyvlgbi',
|
89 |
+
'PORT': 5432,
|
90 |
+
'PASSWORD': os.environ.get('database'),
|
91 |
+
'HOST': 'aws-0-ap-south-1.pooler.supabase.com',
|
92 |
+
}
|
93 |
+
}
|
94 |
# DATABASES = {
|
95 |
# 'default': {
|
96 |
# 'ENGINE': 'django.db.backends.sqlite3',
|