1

What I'm trying to do is simple. Load am XML file using ElementTree so I can traverse it.

Here's the code:

_uri = '/news.xml'
self.root = ElementTree.parse(_uri).getroot()

And, the error:

file not accessible: '/news.xml'

From what I can tell, the parser can't find the document. Is there something I need to configure so python can see my site's files?

Evan Plaice
  • 13,944
  • 6
  • 76
  • 94

1 Answers1

1

This is probably similar to: Read a file on App Engine with Python?

I.e. files that are marked as static are not accessible, but you can also serve it as an application resource file.

Community
  • 1
  • 1
jeffrey_t_b
  • 1,779
  • 12
  • 18