costa-vite-myna/config/directory.py

25 lines
494 B
Python
Raw Normal View History

2022-03-16 11:06:52 +07:00
import os
2023-11-04 19:12:11 +07:00
page = {
'public' :'page/public' ,
'error' :'page/error' # Non-template
}
2022-03-16 11:06:52 +07:00
# For route
dirconfig = {
'/' :
{
'tools.sessions.on' : True ,
'tools.staticdir.root' : os.path.abspath(os.getcwd()) ,
},
'/lib' :
{
'tools.staticdir.on' : True ,
'tools.staticdir.dir' : './static/lib' ,
},
'/css' :
{
'tools.staticdir.on' : True ,
'tools.staticdir.dir' : './static/css' ,
},
}