File: context_processors.py

package info (click to toggle)
django-htmx 1.23.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 816 kB
  • sloc: javascript: 3,395; python: 956; makefile: 27; sh: 19
file content (8 lines) | stat: -rw-r--r-- 195 bytes parent folder | download
1
2
3
4
5
6
7
8
from __future__ import annotations

from django.conf import settings
from django.http import HttpRequest


def debug(request: HttpRequest) -> dict[str, str]:
    return {"DEBUG": settings.DEBUG}