Files
kakebo/core/asgi.py
Andros Fenollosa 7d6197cc17 Translate all UI text and seed data from Spanish to English
- Translate all templates: login, dashboard, expense success, categories
  CRUD, subcategory CRUD, month start page, nav bar, partials
- Translate seed categories: Survival, Leisure & vice, Culture, Extras
  with all subcategories in English
- Translate form placeholders and view titles
- Translate error messages (login, delete confirmations)
- Change LANGUAGE_CODE from "es" to "en-us"
- Change html lang from "es" to "en"
- Format all Python files with Ruff (tabs)
2026-03-12 08:20:59 +01:00

21 lines
577 B
Python

import os
from django.core.asgi import get_asgi_application
from channels.routing import ProtocolTypeRouter, URLRouter
from channels.auth import AuthMiddlewareStack
from channels.security.websocket import AllowedHostsOriginValidator
from liveview.routing import get_liveview_urlpatterns
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "core.settings")
django_asgi_app = get_asgi_application()
application = ProtocolTypeRouter(
{
"http": django_asgi_app,
"websocket": AllowedHostsOriginValidator(
AuthMiddlewareStack(URLRouter(get_liveview_urlpatterns()))
),
}
)