- url: /(.*\.html) static_files: \1 upload: (.*\.html) Ditch the '/' in the upload attribute
2010/11/1 Maria-Carey <[email protected]>: > I have three static (html) files. > > Local links: > http://localhost:8080/index.html > http://localhost:8080/1.html > http://localhost:8080/2.html > > Locally links of other static files, in these, are working fine. But > when I upload it on GAE, these links don't work. > > Remote link: > http://www.codeknock.com/ > > > /************************************************/ > My app.yaml is as follows: > > application: codeknock > version: 1 > runtime: python > api_version: 1 > > handlers: > - url: /stylesheets > static_dir: stylesheets > > - url: /(.*\.html) > static_files: \1 > upload: /(.*\.html) > > > - url: /.* > script: helloworld.py > /***************************************/ > > Helloworld.py file is as follows: > > import cgi > import os > > from google.appengine.ext.webapp import template > from google.appengine.ext import webapp > from google.appengine.ext.webapp.util import run_wsgi_app > from google.appengine.api import users > > class MainPage(webapp.RequestHandler): > def get(self): > template_values = { > 'greetings': 'Greetings Variables', > 'url': 'Url Variables', > 'url_linktext': 'Url_linktext Variables', > } > path = os.path.join(os.path.dirname(__file__), 'index.html') > self.response.out.write(template.render(path, > template_values)) > > def main(): > application = webapp.WSGIApplication([('/', MainPage)], > debug=True) > run_wsgi_app(application) > > if __name__ == '__main__': > main() > > > > Can some one guide me, where and what Iam doing wrong. And how to > rectify it. > > Thanks in advance -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. 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.
