I plan to switch from a single app on a project to multiple apps on a project. One being the current non-UI app and one will be based on Django. I'm writing the code in Python2.7
I saw google example of app.yaml, but there is no examples for 2 or more apps. There is already a similar question. but still with no example (Run Google App Engine application with microservice)
How do i call Django microservice/module and how do i call the other app (microservice/module)?
My current structure is:
main_app directory
- dj (django app)
-- dj.yaml
-- manage.py
-- __init__.py (empty)
-- polls (from django tutorial)
-- mysite (from django tutorial)
- otherapp
-- otherapp.yaml
-- something.py
- app.yaml
- cron.yaml
Here is a part of my app.yaml (that should control both apps):
runtime: python27
api_version: 1
threadsafe: true
handlers:
- url: /.*
script: main.app
- url: /uploadcsv/.*
script: main.app
libraries:
- name: MySQLdb
version: "latest"