On Saturday, 1 June 2019 20:03:24 UTC-7, 黄祥 wrote:
>
> agree, flexible is no policy, long story short what i mean is, can user 
> define templates on it's own path in the app ?
> *e.g. *
> *apps/_scaffold/settings.py*
> TMPLTS_FOLDER = os.path.join(APP_FOLDER, 'views')
>
>
Instead of @action.uses('template.html') you can do 
@action.uses(Template('template.html'), path=TMPLTS_FOLDER))
Or maybe you can defined your own decorator

use_template = lambda name: action.uses(Template(name, path=TMPLTS_FOLDER))

and uses @use_template('template.html')
 

> btw, no worries, it's fine
>
> test latest commit (142), error traceback about database folders (in 
> terminal), solution :
> mkdir apps/_scaffold/databases
> mkdir apps/examples/databases
>
> seems the web3py_start right now can deal with error traceback, in 
> previous commits, when error traceback occur, the web3py server won't 
> start, perhaps will try to exclude 
> mkdir apps/examples/databases
> in *web3py/docker/Dockerfile *
> and seems *web3py/docker/app* subfolder app is no longer used (can be 
> deleted)
>
> best regards,
> stifan
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/31bd5c2c-0393-49db-9893-4e2b12732c05%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to