Posted By

caruso_g on 01/24/11


Tagged

template settings Context processor django


Versions (?)

Edit TEMPLATE_CONTEXT_PROCESSORS in your settings.py


 / Published in: Django
 

Instead of directly edit your TEMPLATE_CONTEXT_PROCESSORS, import it in your app's settings.py and just append what you need.

(credits: denysonique and all #django channel community)

  1. from django.conf.global_settings import TEMPLATE_CONTEXT_PROCESSORS
  2.  
  3. TEMPLATE_CONTEXT_PROCESSORS += ('your.context.preprocessors')

Report this snippet  

You need to login to post a comment.