First of all, why don't you just point the browser at the URL of the  
commands.html file in the first place?

> def list_commands(request):
>    commands = open('home/......./commands.html')
>    return HttpResponse(commands)
>    commands.close()

Secondly: when do you suppose the last line of this view is executed?

Erik

>
>
>
> 2008/10/8 Alfredo Alessandrini <[EMAIL PROTECTED]>:
>> Hi,
>>
>> I'm trying to show a static html page...
>>
>> The html page is in the /media folder.
>>
>> I've some problem with view funcition:
>>
>> def list_commands(request):
>>   commands = ????
>>   return HttpResponse(commands)
>>
>> How can I load the html page?
>>
>>
>> Regards,
>>
>> Alfredo
>>
>
> >


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