|
19 | 19 | # Build paths inside the project like this: BASE_DIR / 'subdir'.
|
20 | 20 | BASE_DIR = Path(__file__).resolve().parent.parent
|
21 | 21 |
|
22 |
| - |
23 | 22 | # Quick-start development settings - unsuitable for production
|
24 | 23 | # See https://docs.djangoproject.com/en/5.1/howto/deployment/checklist/
|
25 | 24 |
|
|
29 | 28 | # SECURITY WARNING: don't run with debug turned on in production!
|
30 | 29 | DEBUG = True
|
31 | 30 |
|
32 |
| -ALLOWED_HOSTS = [] |
33 |
| - |
| 31 | +ALLOWED_HOSTS = os.getenv('DJANGO_ALLOWED_HOSTS', '').split() |
34 | 32 |
|
35 | 33 | # Application definition
|
36 | 34 |
|
|
84 | 82 |
|
85 | 83 | WSGI_APPLICATION = "SORT.wsgi.application"
|
86 | 84 |
|
87 |
| - |
88 | 85 | # Database
|
89 | 86 | # https://docs.djangoproject.com/en/5.1/ref/settings/#databases
|
90 | 87 |
|
|
118 | 115 | },
|
119 | 116 | ]
|
120 | 117 |
|
121 |
| - |
122 | 118 | # Internationalization
|
123 | 119 | # https://docs.djangoproject.com/en/5.1/topics/i18n/
|
124 | 120 |
|
|
130 | 126 |
|
131 | 127 | USE_TZ = True
|
132 | 128 |
|
133 |
| - |
134 | 129 | # Static files (CSS, JavaScript, Images)
|
135 | 130 | # https://docs.djangoproject.com/en/5.1/howto/static-files/
|
136 | 131 |
|
137 | 132 | STATIC_URL = "static/"
|
138 | 133 |
|
139 | 134 | STATICFILES_DIRS = [BASE_DIR / 'static']
|
140 | 135 |
|
141 |
| - |
142 |
| - |
143 | 136 | # Default primary key field type
|
144 | 137 | # https://docs.djangoproject.com/en/5.1/ref/settings/#default-auto-field
|
145 | 138 |
|
|
148 | 141 | LOGIN_REDIRECT_URL = "/"
|
149 | 142 | LOGOUT_REDIRECT_URL = "/"
|
150 | 143 |
|
151 |
| - |
152 | 144 | # FA: End session when the browser is closed
|
153 | 145 | SESSION_EXPIRE_AT_BROWSER_CLOSE = True
|
154 | 146 |
|
155 | 147 | # FA: 30 minutes before automatic log out
|
156 | 148 | SESSION_COOKIE_AGE = 1800
|
157 | 149 |
|
158 |
| -PASSWORD_RESET_TIMEOUT = 1800 # FA: default to expire after 30 minutes |
| 150 | +PASSWORD_RESET_TIMEOUT = 1800 # FA: default to expire after 30 minutes |
159 | 151 |
|
160 | 152 | # FA: for local testing emails:
|
161 | 153 |
|
|
174 | 166 |
|
175 | 167 | # FA: for production:
|
176 | 168 |
|
177 |
| -#EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend" |
178 |
| - |
| 169 | +# EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend" |
0 commit comments