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 -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -