Created
October 8, 2011 14:46
-
-
Save beriberikix/1272373 to your computer and use it in GitHub Desktop.
G+ app engine redirect
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
application: jonathanberi-com | |
version: 2 | |
runtime: python | |
api_version: 1 | |
handlers: | |
- url: /\+ | |
script: plus.py | |
- url: / | |
script: index.py |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from google.appengine.ext import webapp | |
from google.appengine.ext.webapp.util import run_wsgi_app | |
class MainHandler(webapp.RequestHandler): | |
def get(self): | |
self.redirect('https://plus.google.com/108249232416813189685', permanent=True) | |
application = webapp.WSGIApplication([("/%2B", MainHandler)], debug=True) | |
def main(): | |
run_wsgi_app(application) | |
if __name__ == "__main__": | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment