Re: Unable to import libxml2mod from the python script

2010-06-02 Thread Bruce Wang
On Thu, Jun 3, 2010 at 1:26 PM, Graham Dumpleton wrote: > > > > > Are you running your django app under mod_wsgi? It may not running with > your > > interpreter in your #! line. > > > > Try using > > import sys; print sys.executable > > in your wsgi file to find out the exact interpreter your wsg

Re: Unable to import libxml2mod from the python script

2010-06-02 Thread Bruce Wang
On Thu, Jun 3, 2010 at 12:38 PM, Superman wrote: > Thanks for your reply. How do you check env path variables diff > between shell and code > execution? > > To my wsgi file, I have this line "#!/usr/local/bin/python" which > tells which interpreter to use. And yes, libxml2.py and libxml2mod.so >

Re: API with django

2010-05-24 Thread Bruce Wang
2010/5/24 Alexandre González > Hi! > > I must develop a django app that receives XML and returns XML. > > What's the best way to do this? Create a view that receive the XML and > parse it to return a template with the XML resultant? > > I'm newbie in django and need your tips :) > > > You may wan