我一直在使用谷歌應用程序引擎來建立我的網站,並遇到了有關URLMap的最大數量(我有101個URL,但限制爲100)的問題。以下是錯誤消息:谷歌應用引擎100 URLMap條目限制
Fatal error when loading application configuration:
Invalid object:
Found more than 100 URLMap entries in application configuration
in "\AppPest\app.yaml", line 269, column 28
我試圖更改文件appinfo.py設定MAX_URL_MAPS = 1000
,但沒有奏效。任何人都可以給我一些建議嗎?
編輯:
另一個問題是,一些我的網址都差不多,像a_input.html,b_input.html,c_input.html。有沒有辦法簡化它以減少URL的數量?這裏是我的yaml文件的示例
#a
- url: /a_input.html
script: a/a_input.py
#b
- url: /b_input.html
script: b/b_input.py
#c
- url: /c_input.html
script: c/c_input.py
感謝您與此幫助。我喜歡分組網址的方式,但對我的情況有可能(請參閱我的編輯)? –
是的,您需要使用方法1),請參閱我指出的文檔。這裏是代碼(對不起,在註釋中沒有格式): - url:/(.*?)_input.html腳本:\ 1/\ 1_input.py。下次請指定您正在使用的運行時間。 –
謝謝!這組方法起作用。我的運行時是python27。 –