Spaces:
Sleeping
Sleeping
Commit
·
1fbb6e2
1
Parent(s):
1513b55
Update ALLOWED_HOSTS to allow all hosts and set database connection timeout
Browse files- BridgeMentor/settings.py +2 -1
BridgeMentor/settings.py
CHANGED
|
@@ -26,7 +26,7 @@ SECRET_KEY = 'django-insecure-*bimkkt===!#m(@d!x*he9z4gj#+ewbt9(y0o=8si2ny88w+yd
|
|
| 26 |
# SECURITY WARNING: don't run with debug turned on in production!
|
| 27 |
DEBUG = True
|
| 28 |
|
| 29 |
-
ALLOWED_HOSTS = ['
|
| 30 |
CSRF_TRUSTED_ORIGINS = [
|
| 31 |
'https://sushantgautam-bridgementor.hf.space',
|
| 32 |
]
|
|
@@ -104,6 +104,7 @@ DATABASES = {
|
|
| 104 |
'PORT': os.environ['DB_PORT'],
|
| 105 |
'OPTIONS': {
|
| 106 |
'init_command': "SET sql_mode='STRICT_TRANS_TABLES'",
|
|
|
|
| 107 |
},
|
| 108 |
},
|
| 109 |
}
|
|
|
|
| 26 |
# SECURITY WARNING: don't run with debug turned on in production!
|
| 27 |
DEBUG = True
|
| 28 |
|
| 29 |
+
ALLOWED_HOSTS = ['*']
|
| 30 |
CSRF_TRUSTED_ORIGINS = [
|
| 31 |
'https://sushantgautam-bridgementor.hf.space',
|
| 32 |
]
|
|
|
|
| 104 |
'PORT': os.environ['DB_PORT'],
|
| 105 |
'OPTIONS': {
|
| 106 |
'init_command': "SET sql_mode='STRICT_TRANS_TABLES'",
|
| 107 |
+
'connect_timeout': 10,
|
| 108 |
},
|
| 109 |
},
|
| 110 |
}
|