costapy/config/directory.py

26 lines
511 B
Python
Raw Normal View History

2022-03-16 11:06:52 +07:00
import os
# For templating
page = "static/page"
template = "static/template"
email = "static/email"
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' ,
},
}