I am new to app engine and python. I am having a relativelly simple doubt. 
I want to publish a static file and always get a 500 error message. Can 
Anyone Help me? I am posting bellow my code 

*main.py*

import os
import webapp2

import jinja2


jinja_environment = jinja2.Environment(autoescape=True,
    loader=jinja2.FileSystemLoader(os.path.join(os.path.dirname(__file__), 
'templates')))

class MainPage(webapp2.RequestHandler):
    def get(self):
        template = jinja_environment.get_template('index.html')
        self.response.out.write(template.render('template')

app = webapp2.WSGIApplication([('/', MainPage)],
                              debug=True)

*app.yaml:*

application: fashionroombrasil
version: 1
runtime: python27
api_version: 1
threadsafe: true

handlers:
- url: /.*
  script: main.app

libraries:
- name: jinja2
  version: latest  

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/UF69Zk7M2fcJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to