Your view functions are simply Python functions.  However you want to 
use Python to compute an HTML response is fine.  Most people choose to 
use the template engine for that, but you can do whatever you like:

def hello_world(request):
    return HttpResponse("<html><body>Hello, world</body></html>")

--Ned.
http://nedbatchelder.com

Krommenaas wrote:
> Thx for the replies.
>
> This is still unclear though:
>   
>>> 4) I read somewhere in the documentation that you can use other
>>> templating systems than Django's own. Is it also possible to just use
>>> Python inside the views?
>>>       
>> If you use an appropriate templating language that supports that, yes.
>>     
>
> I don't want to use a templating language, I'd want to use Python
> itself inside the views. Possible or not?
>
> Tia,
>
> >
>
>
>   

-- 
Ned Batchelder, http://nedbatchelder.com


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to