Why is "django.core.context_processors.request" not enabled by default?

I was looking for a problem getting an obj request with a new project and realized that "django.core.context_processors.request" was commented out in the vanilla Django settings.

As in the title, why is this apparently useful context processor disabled by default?

  • Is this a performance issue?
  • Is this a security issue?
  • Is this somehow redundant?

Some soft searches didn’t bring anything for me, but I thought I would ask here.

+4
source share
1 answer

That's a good question. Documents say Note that this processor is not enabled by default; you’ll have to activate it., but no explanation.

- django .

- , ( , , X, Y, Z) - , . , , .

- , " ". django.contrib , .

, , , , .

, .

+1

Source: https://habr.com/ru/post/1530912/


All Articles