mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-04-29 10:10:19 +00:00
Use os.path.join() for creating a static directory path
This commit is contained in:
parent
f4edfdedc6
commit
6d3170ece4
@ -92,7 +92,7 @@ def setup_server():
|
|||||||
cherrypy.tree.graft(application, cfg.server_dir)
|
cherrypy.tree.graft(application, cfg.server_dir)
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
'/': {'tools.staticdir.root': '%s/static' % cfg.file_root,
|
'/': {'tools.staticdir.root': os.path.join(cfg.file_root, 'static'),
|
||||||
'tools.staticdir.on': True,
|
'tools.staticdir.on': True,
|
||||||
'tools.staticdir.dir': '.'}}
|
'tools.staticdir.dir': '.'}}
|
||||||
cherrypy.tree.mount(None, django.conf.settings.STATIC_URL, config)
|
cherrypy.tree.mount(None, django.conf.settings.STATIC_URL, config)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user