python - Context Processor for specific app only -


'context_processors': [     ...     ...     "publicfront.views.context_processors.add_event_url"  ], 

i added context processor in settings.py , want use specific app. how achieve this?

the context processor run requests.

if need mimic functionality speak about, add if/else conditions in context processor function, gets request object first argument, may determine app running , populate returned dict accordingly


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -