On 5/16/06, Andreas Neumeier <[EMAIL PROTECTED]> wrote:
> --- cut ---
> from django.template import Context, RequestContext
> from django.core import template_loader
> from django.http import HttpResponse
>
> def index(request):
> t = template_loader.get_template('portal/index.html')
> c = RequestContext(request)
> return HttpResponse(t.render(c))
> --- cut ---
>
> This is not working at all.
>
> If I replace c = RequestContext(request) with c = Context(), the
> rendered template appears...
Hi Andreas,
RequestContext is working perfectly for me. If you explained what part
of it isn't working for you, somebody could help solve your problem.
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-developers
-~----------~----~----~----~------~----~------~--~---