Hide
Python

Uploading Your Application

Note: You can specify that your new application should reside in the European Union, rather than the United States. Hosting applications in the European Union is especially useful if your application's users are closer to Europe than to the United States. There is less network latency and the End User Content will be stored at rest in the European Union. You must specify this location when you register the application; you cannot change it later. Click Show Advanced Options in the Create Project section to select a location option, either United States or European Union.

To upload your application:

  1. Sign in to App Engine using your Google account. If you do not have a Google account, you can create a Google account with an email address and password.
  2. If you haven't already done so, create a project for your App Engine app as follows:
    1. Visit the Google Developers Console and click Create Project.
    2. Supply the desired project name in the New Project form. It doesn't have to match your app name, but using the same name as your app might make adminstration easier.
    3. Accept the generated project ID or supply your own ID. This project ID is used as the App Engine application ID. Note that this ID can only be used once: if you subsequently delete your project, you won't be able to re-use the ID in a new project.
    4. If you have an App Engine Premier account, you can specify that your new application should reside in the European Union rather than the United States. This is especially useful if your application's users are closer to Europe than to the United States. There is less network latency and the End User Content will be stored at rest in the European Union. You must specify this location when you register the application; you cannot change it later. To do this, click Show advanced options, then select EU data center from the drop down menu.
    5. Click Create to create your project and project ID.
  3. Edit your application's app.yaml file, changing the value of the application: setting from your-app-id to the application ID (project ID) you created above.
  4. Upload your finished application to Google App Engine by invoking the following command:
        appcfg.py update guestbook/

    Or click Deploy in the Google App Engine Launcher and enter your Google username and password at the prompts.

  5. The Datastore Indexes may take some time to generate before your application is available. You will receive a NeedIndexError when accessing your app if the indexes are still in the process of being generated. This is a transient error for the example, so try a little later if at first you receive this exception.
  6. Your app is now deployed and ready for users!

Congratulations!

You have completed this tutorial.

The full URL for your application is http://your-app-id.appspot.com/. Optionally, you can instead purchase and use a top-level domain name for your app, or use one that you have already registered. For more information on the subjects covered here, see the rest of the App Engine documentation.

If you work with the Git version control system, you can create a remote repository in Google's cloud, and configure your development environment to deploy the latest version of your code each time you push it to that repository. See Using Git to Push and Deploy.