Hi,

I'm having trouble with a context processor not running when I make a
request. I've tried to reduce this to the simplest case I can:

My projects tree is as follows:

project/
....context_processors/
........__init__.py
........globals.py

The file, 'globals.py', contains the following:

def globals(request):
        print "spam"
        return { 'cp_test': "eggs" }

In settings.py, I have defined the following:

TEMPLATE_CONTEXT_PROCESSORS = (
        'django.core.context_processors.auth',
        'django.core.context_processors.request',
        'project.context_processors.globals.globals',
)

As I understand it, this is all I need to do to have the context
processor execute properly, however neither 'spam' is output to the
console (I'm using the ./manage.py server), nor is 'eggs', or the
token 'cp_test' passed to the template. I'm sure I'm doing something
stupid, but what?

--Jon

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to