Ticket #3818: context_processors.diff

File context_processors.diff, 420 bytes (added by ciantic@…, 18 years ago)

exposed context processor that handles reading of settings in context wise

  • context_processors.py

     
    4242
    4343    return context_extras
    4444
     45def exposed(request):
     46        dict = {}
     47        for name in settings.EXPOSE_SETTINGS:
     48                dict[name] = getattr(settings, name)
     49        return dict
     50
    4551def request(request):
    4652    return {'request': request}
    4753
Back to Top