Hello I am facing a problem
When I run my google app code in the dev_appserver.py environment
everything works as should
but when I run the app in production the main page shows with the link
but when I click the link I get a page not found error
here is the content of the page
class Form(webapp.RequestHandler):
def get(self):
self.response.out.write("""
<html>
<head>
</head>
<body>
<form action="/sign" method="post">
<div><input type="text" name="topic" \>Topic</div>
<div><input type="text" name="tags" \>Tags</div>
<div>Comments<br /><textarea name="content" rows="5"
cols="60"></
textarea></div>
<div><input type="submit" value="Post"></div>
</form>
</body>
</html>""")
here is the link to the page.....
class MainPage(webapp.RequestHandler):
def get(self):
self.response.out.write("""
<html>
<body>
<div align=\"center\"><a href=\"/form\">Post to Forum</a></div>
<table width=\"1000\" align=\"center\">""")
and here are my urls
def main():
urlmap = [
("/", MainPage),
("/form", Form),
("/sign", Sign),
("/viewtopic", ViewTopic),
("/reply", Reply),
]
application = webapp.WSGIApplication(urlmap, debug=True)
run_wsgi_app(application)
any ideas
ty 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
-~----------~----~----~----~------~----~------~--~---