Hello,

I'm missing something somewhere. Somebody please point me in the right
direction. I'm using Rev. 6865.

My view.py:

def foo(request) :
        return render_to_response('classifieds/blank.html',
                {
                'content': "<!-- Why is this so? -->",
                },
                mimetype = "text/html"
        )

My blank.html:

{{ content }}

The urls.py works, as the view is getting correctly dispatched. I have
no DEFAULT_CONTENT_TYPE in settings.py.

The problem:

When I request the page, I'm getting

&lt;!-- Why is this so? --&gt;

instead of

<!-- Why is this so? -->

Firebug shows the Response Header as:

Content-Type: text/html

If I do it this way:

response = HttpResponse()
response.write("<!-- Why is this so? -->")
return response

it works as expected. So it seems something in the templating response
food chain is converting the greater than's/less than's(?).

What is the obvious thing I'm missing?

John
--~--~---------~--~----~------------~-------~--~----~
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