I've solved it with:
def list_commands(request):
commands = open('home/......./commands.html')
return HttpResponse(commands)
commands.close()
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 [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
-~----------~----~----~----~------~----~------~--~---