schon/evibes/settings/graphene.py
Egor fureunoir Gorbunov adfffee0a3 Features: 1) Update all log handlers to dynamically switch based on DEBUG setting; 2) Introduce improved middleware logging configuration.
Fixes: 1) Remove unnecessary wildcard imports in settings files; 2) Add missing imports for `getenv`, `DEBUG`, and other constants; 3) Fix logger usage in middleware to align with `django.request`.

Extra: 1) Refactor settings files for readability and consistency; 2) Remove outdated `noqa` comments; 3) Minor formatting adjustments.
2025-07-06 16:58:43 +03:00

13 lines
336 B
Python

from evibes.settings.base import DEBUG
GRAPHENE = {
"MIDDLEWARE": [
"evibes.middleware.GrapheneLoggingErrorsDebugMiddleware",
"evibes.middleware.GrapheneJWTAuthorizationMiddleware",
]
if DEBUG
else [
"evibes.middleware.GrapheneJWTAuthorizationMiddleware",
],
"CAMELCASE_ERRORS": True,
}