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
Post a Comment