On Mon, Jun 30, 2008 at 3:27 PM, Bobby Roberts <[EMAIL PROTECTED]> wrote: > > in my view I have: > > > from django.template import RequestContext > from django.template import Template, Context > > [... session variables set here...] > > return render_to_response('step3.html', > context_instance=RequestContext(request)) > > > and in my template i have: > > <span class="reviewitem"><b>Account #:</b> > {{ request.session.AccountNum }}</span><br /> > > > it prints nothing to the screen unless i explicitly pass a variable.
Are you sure you have activated the request context processor? In other words, do you have something like this in your settings file? TEMPLATE_CONTEXT_PROCESSORS = ( "django.core.context_processors.auth", "django.core.context_processors.debug", "django.core.context_processors.i18n", "django.core.context_processors.media", "django.core.context_processors.request", ) There's more explanation about this in the docs here: http://www.djangoproject.com/documentation/templates_python/#subclassing-context-requestcontext Arien --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---