title: How can I use relative path to read local files in Django app?
body: <p>My django app has to read some text files from the file system. So I make a directory in my app directery, and use relative path to open and read from the file.</p>
  
  <pre><code>areas = parseXmlFile('xml_files/area.xml')
  </code></pre>
  
  <p>When I run server to debug using <code>manage.py runserver</code>, that's ok. But I run server using       <code>manage.py runfcgi host=127.0.0.1 port=8081</code> , Django can't find the file: <code>No such file or directory: 'xml_files/area.xml'</code></p>
  
  <p>I don't want to use absolute path, that means I need to modify much code.</p>
  
  <p>How can I solve the problem to use relative path to open local file?</p>