Django / Setup

Step 21 of 24

Instale o SDK do Django.

Adicione o django-altified a um projeto Django, ligue-o com uma chave API secreta e verifique se o SDK consegue aceder ao Altified.

Install the package in the same Python environment that runs your Django application.

Terminal
pip install django-altified

Add the SDK to INSTALLED_APPS and configure the API URL and secret key from your Altified dashboard.

settings.py
INSTALLED_APPS = [ ..., "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.