Why should a python project contain context_processors.py in its app?
If its a just snippet why should not we use other names?
Why should it is specifically it coined as context_processors.py?
Why should a python project contain context_processors.py in its app? If its a just
Share
Your application can contain (it’s not obligate) context_processors.py if you want to put some variables in Template Context object. These vars are global in your templates.
You can name this file whatever you like but it is common name in Django (like middleware.py, views.py and others). It will be clear for other developers who will support your code later.
Django project includes this file using TEMPLATE_CONTEXT_PROCESSORS in your settings.py