Permission denied
Request Method:
POST
Request URL:
Exception Type:IOError
Exception Value:[Errno 13] Permission denied: u'Bhaskar_dsa.xml'
Exception Location:/home/erp/webappserp_dev/erp/apps/erp_site/views.py
in testimonials, line 238
Python Executable:/usr/local/bin/python
Python Version:2.5.4
This is the above error I am getting when I am trying to write an xml
file in
TESTIMONIAL_DIR /home/erp/webapps/erp_dev/erp/xml/testimonial'
It something related to permission stuff. I did chmod 777 on both
xml and testimonial folder which I created. Still getting the same
issue. Can you please help me there.
Scenerio is I need to generate xml file from the form field and put
it in to that TESTIMONIAL folder.
my code in views.py
filename = fname + "_" + lname + ".xml"
filepath = settings.TESTIMONIAL_DIR + "/" + filename;
logging.debug('filepath = %s' % filepath)
FILE = open(filename,"w") ----- This is the line its giving the
error.
doc.writexml(FILE)
FILE.close()
Thank you
Bhaskar
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home