mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-02-04 08:13:38 +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)
|
||||
|
||||
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.dir': '.'}}
|
||||
cherrypy.tree.mount(None, django.conf.settings.STATIC_URL, config)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user