Add optional Django sync backend skeleton with token-based API

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
denis
2026-10-14 22:24:39 +02:00
parent dfae68db87
commit f70ea5d497
21 changed files with 329 additions and 2 deletions
+28
View File
@@ -0,0 +1,28 @@
"""Réglages communs. Le backend ne sert qu'à synchroniser la progression entre appareils."""
from pathlib import Path
BASE_DIR = Path(__file__).resolve().parent.parent.parent
INSTALLED_APPS = ["sync"]
MIDDLEWARE = [
"django.middleware.security.SecurityMiddleware",
"django.middleware.locale.LocaleMiddleware",
"django.middleware.common.CommonMiddleware",
]
ROOT_URLCONF = "pyquest_api.urls"
WSGI_APPLICATION = "pyquest_api.wsgi.application"
DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"
LANGUAGE_CODE = "fr"
LANGUAGES = [("fr", "Français"), ("en", "English")]
LOCALE_PATHS = [BASE_DIR / "locale"]
USE_I18N = True
USE_TZ = True
TIME_ZONE = "UTC"
# Taille maximale d'une progression synchronisée (octets).
SYNC_MAX_PAYLOAD_BYTES = 256 * 1024