Spaces:
Sleeping
Sleeping
Update voiceassist/settings.py
Browse files- voiceassist/settings.py +9 -8
voiceassist/settings.py
CHANGED
@@ -39,10 +39,7 @@ SECRET_KEY = "django-insecure-qx!bso^+a%d!fuu9ti6i_)^hv(1iunmkha9le#4(%y$6v3vzrf
|
|
39 |
# SECURITY WARNING: don't run with debug turned on in production!
|
40 |
DEBUG = True
|
41 |
|
42 |
-
ALLOWED_HOSTS = ["*"
|
43 |
-
CORS_ALLOWED_ORIGINS = [
|
44 |
-
'https://thejagstudio-voiceassist.hf.space'
|
45 |
-
]
|
46 |
|
47 |
CORS_ORIGIN_ALLOW_ALL = True
|
48 |
|
@@ -78,7 +75,7 @@ MIDDLEWARE = [
|
|
78 |
ROOT_URLCONF = "voiceassist.urls"
|
79 |
SETTINGS_PATH = Path(__file__).resolve().parent.parent
|
80 |
TEMPLATE_DIRS = (
|
81 |
-
|
82 |
"templates"
|
83 |
)
|
84 |
TEMPLATES = [
|
@@ -111,12 +108,16 @@ DATABASES = {
|
|
111 |
"default": {
|
112 |
'ENGINE': 'django.db.backends.postgresql_psycopg2',
|
113 |
'NAME': 'postgres',
|
114 |
-
'USER': 'postgres.
|
115 |
-
'PASSWORD': '
|
116 |
-
'HOST': 'aws-0-
|
117 |
'PORT': '6543',
|
118 |
}
|
119 |
}
|
|
|
|
|
|
|
|
|
120 |
|
121 |
|
122 |
# Password validation
|
|
|
39 |
# SECURITY WARNING: don't run with debug turned on in production!
|
40 |
DEBUG = True
|
41 |
|
42 |
+
ALLOWED_HOSTS = ["*"]
|
|
|
|
|
|
|
43 |
|
44 |
CORS_ORIGIN_ALLOW_ALL = True
|
45 |
|
|
|
75 |
ROOT_URLCONF = "voiceassist.urls"
|
76 |
SETTINGS_PATH = Path(__file__).resolve().parent.parent
|
77 |
TEMPLATE_DIRS = (
|
78 |
+
os.path.join(SETTINGS_PATH, 'vafront\\dist'),
|
79 |
"templates"
|
80 |
)
|
81 |
TEMPLATES = [
|
|
|
108 |
"default": {
|
109 |
'ENGINE': 'django.db.backends.postgresql_psycopg2',
|
110 |
'NAME': 'postgres',
|
111 |
+
'USER': 'postgres.wbuaexhmkbxetjilavow',
|
112 |
+
'PASSWORD': 'eUtJg0OPWSMJZp8b',
|
113 |
+
'HOST': 'aws-0-ap-south-1.pooler.supabase.com',
|
114 |
'PORT': '6543',
|
115 |
}
|
116 |
}
|
117 |
+
# "default": {
|
118 |
+
# "ENGINE": "django.db.backends.sqlite3",
|
119 |
+
# "NAME": str(BASE_DIR / "db.sqlite3"),
|
120 |
+
# }
|
121 |
|
122 |
|
123 |
# Password validation
|