|
6 | 6 | from decouple import config |
7 | 7 | from sentry_sdk.integrations.django import DjangoIntegration |
8 | 8 |
|
| 9 | + |
9 | 10 | mimetypes.add_type("application/javascript", ".js", True) |
10 | 11 | mimetypes.add_type("text/css", ".css", True) |
11 | 12 | mimetypes.add_type("text/html", ".html", True) |
|
125 | 126 | "core.log.middleware.CustomLoguruMiddleware", |
126 | 127 | ] |
127 | 128 |
|
| 129 | + |
128 | 130 | # CORS_ALLOWED_ORIGINS = [ |
129 | 131 | # "http://localhost:4200", |
130 | 132 | # "http://127.0.0.1:4200", |
|
177 | 179 |
|
178 | 180 | ASGI_APPLICATION = "procollab.asgi.application" |
179 | 181 |
|
180 | | -REDIS_HOST = config("REDIS_HOST", cast=str, default="127.0.0.1") |
181 | | - |
182 | 182 | if DEBUG: |
183 | 183 | DATABASES = { |
184 | 184 | "default": { |
|
194 | 194 | } |
195 | 195 | } |
196 | 196 |
|
197 | | - CHANNEL_LERS = {"default": {"BACKEND": "channels.layers.InMemoryChannelLayer"}} |
| 197 | + CHANNEL_LAYERS = {"default": {"BACKEND": "channels.layers.InMemoryChannelLayer"}} |
198 | 198 | else: |
199 | 199 | # fixme |
200 | 200 | CACHES = { |
|
317 | 317 | EMAIL_HOST_USER = config("EMAIL_USER", cast=str, default="example@mail.ru") |
318 | 318 | EMAIL_HOST_PASSWORD = config("EMAIL_PASSWORD", cast=str, default="password") |
319 | 319 |
|
320 | | -DEFAULT_FROM_EMAIL = EMAIL_HOST_USER |
321 | | -SERVER_EMAIL = EMAIL_HOST_USER |
322 | | -EMAIL_ADMIN = EMAIL_HOST_USER |
323 | | - |
324 | 320 | SELECTEL_ACCOUNT_ID = config("SELECTEL_ACCOUNT_ID", cast=str, default="123456") |
325 | 321 | SELECTEL_CONTAINER_NAME = config( |
326 | 322 | "SELECTEL_CONTAINER_NAME", cast=str, default="procollab_media" |
|
344 | 340 | "enqueue": True, |
345 | 341 | } |
346 | 342 |
|
| 343 | + |
347 | 344 | if DEBUG: |
348 | 345 | SELECTEL_SWIFT_URL += "debug/" |
349 | 346 |
|
|
0 commit comments