Apr '09
27

WordPress and django are now talking to each other. WordPress hosts the footer, because thats where the twitter and blog posts are, and django hosts the header because the apps will be under django.django requests the footer via urllib2 and a special url that only generates the footer html:

  • request  = urllib2.Request(BASE_URL+’blog/?django=footer’)

and wordpress request the header:

  • echo get_content(’http://’.$_SERVER['HTTP_HOST'].’/header/’);

Share and share alike :)

Leave a Reply