mirror of
https://github.com/deunix-educ/PyQuest.git
synced 2026-11-25 08:19:44 +01:00
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:
@@ -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
|
||||
Reference in New Issue
Block a user