title: Getting the Server URL in Google App Engine using python
body: <p>How do I get App Engine to generate the URL of the server it is currently running on?</p>
  
  <p>If the application is running on development server it should return</p>
  
  <pre><code>http://localhost:8080/
  </code></pre>
  
  <p>and if the application is running on Google's servers it should return </p>
  
  <pre><code>http://application-name.appspot.com
  </code></pre>