Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Igors Smirnovs
10,441 PointsHow to deploy Python 3 project on Google App Engine?
Hey! I was looking for a solution of how to deploy python 3 projects on GAE. It definitely supports python 2 and I have difficult times finding an explanation on how to do it if I use python34. Have somebody dealt with this issue and is there a solution or alternatives?
1 Answer
jordans
1,609 PointsThe Google App Engine only supports Python 2.7, unfortunately. If the version isn't a requirement, Google's App Engine is very simple to get into to. I just tried creating a simple Python application and it was very straightforward.
I used my computers terminal (OS X) to login and link my computer to the Google Cloud. Then I created a project and copied the Project ID. You can view your Project ID if you click "Select a project" and click "Manage all projects". Once you copy that and save it somewhere, download the Google Cloud SDK by following this simple tutorial.
After the SDK is installed make sure you restart your terminal if you're using a OS X.
Next, set your project by typing "gcloud config set project PROJECT_ID" (without the parenthesis).
Once that's finished, createan instance by typing "gcloud compute instances create my-instance --zone us-central1-a"
The last step is to update and deploy your app by running the command "appcfg.py --oauth2 -A PROJECT_ID update python-directory/" .
After that, your terminal should say to visit the Google App Engine, over at: http://appengine.google.com
Once you login, you should see a list of your Applications. Click the Running button under status and your Python application should pop up.
There's a LOT more you can do with Google App Engine. With Google offering a 90-day free trial, it's hard not to play around with such a sophisticated Cloud Platform.