On 16 Oct 08:09, Pythoni wrote:
> 
> In PHP can be used
> <?php
> include "http://url_address";;
> ?>
> 
> 
> How must I translate that to be able to use it in Django?

First off, is that a fixed string URL...
Second, is that a site under your control that you're including

if one isn't true, probably a bad idea to do it anyways.
if two isn't true, probably a bad idea to do it anyways (cross site
scripting concerns)

But, you can get the content fairly easily:

    import urllib
    content = urllib.urlopen("http://url_address";).read()

Then you can do what you like with that content.

Cheers,
-- 
Brett Parker

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