Files
Andros Fenollosa 3cb1fdc09f Add Django REST Framework to benchmark comparison
- Added DRF implementation with identical endpoints
- Updated benchmark scripts to include DRF (port 8005)
- Ran comprehensive benchmarks with all 5 frameworks
- Updated documentation and results
- Generated new comparison graphs

Results show Django Bolt leading in all endpoints, with DRF
showing lowest JSON performance but competitive DB performance.
2025-12-25 20:12:21 +01:00

49 lines
830 B
Python

"""
Django settings for benchmark project.
Shared by Django Ninja and Django Bolt.
"""
from __future__ import annotations
import os
from pathlib import Path
BASE_DIR = Path(__file__).resolve().parent.parent
SECRET_KEY = "benchmark-secret-key-not-for-production"
DEBUG = False
ALLOWED_HOSTS = ["*"]
INSTALLED_APPS = [
"django.contrib.contenttypes",
"django.contrib.auth",
"django_project.users",
"django_bolt",
"rest_framework",
]
MIDDLEWARE = []
ROOT_URLCONF = "django_project.urls"
DATABASES = {
"default": {
"ENGINE": "django.db.backends.sqlite3",
"NAME": BASE_DIR / "django_benchmark.db",
}
}
DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"
USE_TZ = True
LOGGING = {
"version": 1,
"disable_existing_loggers": True,
"handlers": {},
"loggers": {},
}