# Production dependencies.
#
# cPanel's "Setup Python App" reads this file by name — keep it at the app root
# and keep it importable without dev tooling.
#
# Target runtime: Python 3.12.14 (the newest the host offers, task 0.0).

# Django 5.2 LTS — security-supported to April 2028 (DECISIONS.md D-006).
Django>=5.2,<5.3

# Settings from environment variables / .env.
django-environ>=0.11,<1.0

# REST API consumed by both Flutter apps.
djangorestframework>=3.15,<4.0

# JWT auth. The blacklist app is included so logout actually invalidates a
# refresh token rather than merely forgetting it client-side.
djangorestframework-simplejwt>=5.3,<6.0

# MySQL/MariaDB driver.
#
# mysqlclient is the driver Django officially supports, but it is a C extension
# and needs MariaDB dev headers plus a compiler at install time. If it fails to
# build on cPanel with "mysql_config not found", swap to the pure-Python
# fallback — see backend/README.md for the two-line shim.
mysqlclient>=2.2,<3.0
