我想創建一個如下所示的目錄結構。我如何獲得account.py和game.py來處理轉發到\ account \和\ game \的請求。我見過的所有app-engine示例都在main.py上有處理所有url的所有邏輯。
app\account\
\account.py
\game\
\ game.py
\static\css
\js
\images
\app.yaml
\main.py
我在app.yaml中嘗試了以下內容但它沒有用
application: mefirst
version: 1
runtime: python
api_version: 1
handlers:
- url: /static
static_dir: static
- url: /account
script: account.py
- url: .*
script: main.py