Skip to content

Commit 5920af9

Browse files
committed
add Python 3 support for Mod 16 app
1 parent 027c0f0 commit 5920af9

File tree

9 files changed

+7
-1
lines changed

9 files changed

+7
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ Module | Topic | Video | Codelab | START here | FINISH here
114114
13|Migrate to Cloud Memorystore| _TBD_ | _TBD_ | Module 12 [code](/mod12-memcache) (2.x) & [code](/mod12b-memcache) (3.x) | Module 13 [code](/mod13a-memorystore) (2.x) & [code](/mod13b-memorystore) (3.x)
115115
14|Migrate service between projects| _TBD_ | _TBD_ | _TBD_ | _TBD_
116116
15|Add App Engine `blobstore`| _TBD_ | _TBD_ | Module 0 [code](/mod0-baseline) (2.x) | Module 15 [code](/mod15-blobstore) (2.x)
117-
16|Migrate to Cloud Storage| _TBD_ | _TBD_ | Module 15 [code](/mod15-blobstore) (2.x) | Module 16 [code](/mod16a-cloudstorage) (2.x)
117+
16|Migrate to Cloud Storage| _TBD_ | _TBD_ | Module 15 [code](/mod15-blobstore) (2.x) | Module 16 [code](/mod16-cloudstorage) (2.x & 3.x)
118118

119119

120120
### Table of contents
File renamed without changes.

mod16a-cloudstorage/README.md renamed to mod16-cloudstorage/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,8 @@ This repo folder is the corresponding code to the [Module 16 codelab](http://g.c
77
1. Migrate from App Engine `blobstore` to Cloud Storage
88

99
The reason why the web framework requires migration is because `blobstore` has dependencies on `webapp` and `webapp2`, so we could not start directly from a Flask app.
10+
11+
This app is fully Python 2-3 compatible. To do a Python 3 deployment of this app:
12+
13+
1. Edit `app.yaml` by enabling/uncommenting the `runtime: python39` line
14+
1. Delete all other lines in `app.yaml`, save, and deploy with `gcloud app deploy`

mod16a-cloudstorage/app.yaml renamed to mod16-cloudstorage/app.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
#runtime: python39
1516
runtime: python27
1617
threadsafe: yes
1718
api_version: 1
File renamed without changes.

0 commit comments

Comments
 (0)