I want to create a directory structure as shown below. How can I get account.py and game.py to handle requests that go to \ account \ and \ game \ with respect. All the sample applications I've seen have all the logic on main.py that handle all the urls.
app\account\ \account.py \game\ \ game.py \static\css \js \images \app.yaml \main.py
I tried the following in app.yaml but this did not work
application: mefirst version: 1 runtime: python api_version: 1 handlers: - url: /static static_dir: static - url: /account script: account.py - url: .* script: main.py
MVCEngine, AppEngine, Ruby on Rails . , , MVCEngine.py, , , . .
app.yaml:
app.yaml
- url: /account script: account/account.py - url: /game script: game/game.py - url: .* script: main.py
, ( : \) - , (, :/). - Windows ( - Python ), URL-, Unix-y- ( Linux MacOSX). , ", \account\and\game\respectfully", - , .
Source: https://habr.com/ru/post/1729750/More articles:How to avoid output (for XHTML) in mako? - pythonOverloaded C ++ method in a derived class - c ++Random identifier generator matching the same column - javaVirtual Function Table Offset - c ++.NET security error accessing external API - securityPhp / MySQL Store custom searches between pages so the user can return to them - phpHow can I get the Asp.net MVC browse dialog from the Views folder? - asp.net-mvcConvert duplicate binary to decimal (series expression?) - binaryМногочленное поколение степени n - mathWhat are the benefits of having custom commands with the on Vim? - vimAll Articles