Getting the Server URL in Google App Engine using python

Viewed 6387

How do I get App Engine to generate the URL of the server it is currently running on?

If the application is running on development server it should return

http://localhost:8080/

and if the application is running on Google's servers it should return

http://application-name.appspot.com
3 Answers
Related