25 lines
482 B
Python
25 lines
482 B
Python
import os
|
|
|
|
# For templating
|
|
page = "static/page"
|
|
template = "static/template"
|
|
|
|
# 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' ,
|
|
},
|
|
}
|