The documentation now defines modules as the way to structure a big project made of small parts. We have something similar structured the following way:
app.yaml
- url: /profile/*
script: profile.app
- url: /account/*
script: account.app
- url: /css
mime_type: text/css
static_dir: css
...
account.py (has its own Webapp2 app instance)
profile.py (has its own webapp2 app instance)
...
css/
js/
Each part (account, profile, etc...) has its own webapp2 instance. I would like to get some comments/feedback on how I structured the project so far. There may be drawbacks that I haven't considered.
Also, we are going to split the project in two. The two "sub-projects" need the same database layer. They will also reuse parts I assigned different webapp2 instances to. The only difference is that they will have their own endpoints and own static assets. The end goal is to have two separate custom domains.
I don't know if I went the wrong path and should be using modules instead with the current code. Has anyone done anything similar or run into similar issue? Would like to know if we should switch to modules.