Мне нужна помощь с моим app.yaml
и управлением URL. У меня есть скрипты ting.py
, searchandler.py
и toplawfirms.py
. Сначала я создал ting.py
, а в app.yaml
- url: /.*
script: ting.py
и все остальные страницы объявлены в ting.py
. Но я думаю, что допустил ошибку с searchhandler.py
и toplawfirms.py
, не сделав их вторым уровнем. Есть ли способ теперь иметь в app.yaml
только три сценария, чтобы мой app.yaml
выглядел как
...
- url: /???
script: searchhandler.py
- url: /???
script: toplawfirms.py
- url: /.*
script: ting.py
...
чтобы я мог объявить все остальные страницы в своих скриптах?
Вот что у меня сейчас:
application: ting-1
version: 1
runtime: python
api_version: 1
handlers:
- url: /_ah/mail/.+
script: incoming.py
login: admin
- url: /stylesheets
static_dir: stylesheets
- url: /favicon.ico
static_files: static/images/favicon.ico
upload: static/images/favicon.ico
- url: /image
script: toplawfirms.py
- url: /imageupload
script: toplawfirms.py
- url: /imagesave
script: toplawfirms.py
- url: /imageresize
script: toplawfirms.py
- url: /displayimage
script: toplawfirms.py
- url: /histogram
script: toplawfirms.py
- url: /testurlopen
script: toplawfirms.py
- url: /printdb
script: toplawfirms.py
- url: /cropimage
script: toplawfirms.py
- url: /jquerytest
script: toplawfirms.py
- url: /urlopenppp
script: toplawfirms.py
- url: /deleteone
script: toplawfirms.py
- url: /enterppp
script: toplawfirms.py
- url: /saveppp
script: toplawfirms.py
- url: /searchhandler
script: searchhandler.py
- url: /site
script: searchhandler.py
- url: /searchall
script: searchall.py
- url: /.*
script: ting.py
inbound_services:
- mail