Yes, that worked.  Thank you!

Of course, now that I fixed that, I have to deal with the other
problem that I was avoiding... But I'll post that in a different
question.  :-)

Thanks again, Pedro.


On Apr 15, 9:35 pm, Pedro Kroger <pedro.kro...@gmail.com> wrote:
> You can try something like:
>
> def my_view(request):
>     .... <code here> ...
>
>     context = []
>     for offset in offsets:
>         before = ' '.join(tokens[offset-5:offset])
>         word = tokens[offset]
>         after = ' '.join(tokens[offset+1:offset+5])
>         context.append(before, word, after)
>
>     ... <more code here> ...
>
>     return render_to_response("template.html", {'context': context})
>
> Now your data will be available inside the 'context' variable and you
> can access the 'context' variable in your template like you want. I
> hope that helps.
>
> Pedro
>
> --http://pedrokroger.net

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to