Spaces:
Sleeping
Sleeping
Update core/settings.py
Browse files- core/settings.py +6 -3
core/settings.py
CHANGED
|
@@ -25,9 +25,12 @@ SECRET_KEY = 'django-insecure-bpm=z9@@=29etqf8x)a_8_-a^9adja%!@bt)%0*!*$hewld4*t
|
|
| 25 |
# SECURITY WARNING: don't run with debug turned on in production!
|
| 26 |
DEBUG = True
|
| 27 |
|
| 28 |
-
ALLOWED_HOSTS = ['
|
| 29 |
-
|
| 30 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
# Application definition
|
| 32 |
|
| 33 |
INSTALLED_APPS = [
|
|
@@ -111,7 +114,7 @@ USE_I18N = True
|
|
| 111 |
|
| 112 |
USE_TZ = True
|
| 113 |
|
| 114 |
-
|
| 115 |
# Static files (CSS, JavaScript, Images)
|
| 116 |
# https://docs.djangoproject.com/en/6.0/howto/static-files/
|
| 117 |
|
|
|
|
| 25 |
# SECURITY WARNING: don't run with debug turned on in production!
|
| 26 |
DEBUG = True
|
| 27 |
|
| 28 |
+
ALLOWED_HOSTS = ['izaheeerr-transcriber.hf.space', 'localhost', '127.0.0.1', '0.0.0.0']
|
|
|
|
| 29 |
|
| 30 |
+
CSRF_TRUSTED_ORIGINS = [
|
| 31 |
+
'https://izaheeerr-transcriber.hf.space',
|
| 32 |
+
'https://*.hf.space'
|
| 33 |
+
]
|
| 34 |
# Application definition
|
| 35 |
|
| 36 |
INSTALLED_APPS = [
|
|
|
|
| 114 |
|
| 115 |
USE_TZ = True
|
| 116 |
|
| 117 |
+
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
|
| 118 |
# Static files (CSS, JavaScript, Images)
|
| 119 |
# https://docs.djangoproject.com/en/6.0/howto/static-files/
|
| 120 |
|