Spaces:
Runtime error
Runtime error
thejagstudio
commited on
Commit
•
64d72d0
1
Parent(s):
7b1c03f
Update cloudStorage/settings.py
Browse files- cloudStorage/settings.py +2 -1
cloudStorage/settings.py
CHANGED
@@ -12,6 +12,7 @@ https://docs.djangoproject.com/en/4.0/ref/settings/
|
|
12 |
|
13 |
from pathlib import Path
|
14 |
import os
|
|
|
15 |
|
16 |
# Build paths inside the project like this: BASE_DIR / 'subdir'.
|
17 |
BASE_DIR = Path(__file__).resolve().parent.parent
|
@@ -80,7 +81,7 @@ WSGI_APPLICATION = 'cloudStorage.wsgi.application'
|
|
80 |
# Database
|
81 |
# https://docs.djangoproject.com/en/4.0/ref/settings/#databases
|
82 |
|
83 |
-
DATABASES = os.environ.get('database')
|
84 |
# DATABASES = {
|
85 |
# 'default': {
|
86 |
# 'ENGINE': 'django.db.backends.sqlite3',
|
|
|
12 |
|
13 |
from pathlib import Path
|
14 |
import os
|
15 |
+
import json
|
16 |
|
17 |
# Build paths inside the project like this: BASE_DIR / 'subdir'.
|
18 |
BASE_DIR = Path(__file__).resolve().parent.parent
|
|
|
81 |
# Database
|
82 |
# https://docs.djangoproject.com/en/4.0/ref/settings/#databases
|
83 |
|
84 |
+
DATABASES = json.loads(os.environ.get('database'))
|
85 |
# DATABASES = {
|
86 |
# 'default': {
|
87 |
# 'ENGINE': 'django.db.backends.sqlite3',
|