Django / Setup
Paso 22 de 25
Instala el SDK de Django
Agregue django-altified a un proyecto Django, conéctelo con una clave API secreta y verifique que el SDK pueda acceder a Altified.
Instala el paquete en el mismo entorno Python en el que se ejecuta tu aplicación Django.
Terminal
pip install django-altifiedAgregue el SDK a INSTALLED_APPS y configure la URL de la API y la clave secreta desde su panel de control de Altified.
configuración.py
APLICACIONES_INSTALADAS = [ ..., "django_altified", ] ALTIFIED_API_KEY = "altified_..." ALTIFIED_API_URL = "https://api.altified.com/api/v1"- Use a secret Altified key for Django server-side syncing.
- Keep the key in environment variables in production.
- Set ALTIFIED_API_URL to your deployed Altified backend or local backend during development.
- Configure default and target languages in the Altified dashboard, not in Django settings.