擅长:python、mysql、java
<p>它适合我(win x64):</p>
<pre><code>conf = {
'/': {
'tools.sessions.on': True,
'tools.staticdir.root': os.path.abspath(os.getcwd())
},
'/css': {
'tools.staticdir.on': True,
'tools.staticdir.dir': './css'},
'/img': {
'tools.staticdir.on': True,
'tools.staticdir.dir': './img'},
'/js': {
'tools.staticdir.on': True,
'tools.staticdir.dir': './js'},
'global': {
'environment': 'production',
'log.screen': True,
'server.socket_host': '127.0.0.1',
'server.socket_port': 8080,
'engine.autoreload_on': True,
}}
</code></pre>
<p>例如:
url(../img/背景图片)在</p>