title: Bottlepy: template not found
body: <p>I have server running on apache. I use bottle.py. When I'm going to xxx/getbio, SOMETIMES it returns :</p>
  
  <p><code>Error: 500 Internal Server Error: Template 'bio' not found.</code></p>
  
  <p>This error occurs not all time: if I restart apache, it's normalizing for several hours, but happens again. Here is code fragment :</p>
  
  <pre><code>@route('/getbio')
  def getBio():
      return template('bio')
  </code></pre>
  
  <p>Here is file structure :</p>
  
  <pre><code>xxx/
  ├── views/
  │   ├── bio.tpl
  └── index.py
  </code></pre>
  
  <p>And I didin't missed following lines of code:</p>
  
  <pre><code>sys.path.append(os.path.dirname(os.path.abspath(__file__)))
  sys.path.append('views')
  os.chdir(os.path.dirname(os.path.abspath(__file__)))
  </code></pre>
  
  <p>Please help me, because I don't have idea how to fix this bug</p>