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

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -