Otherwise you have to set them both, and that's just annoying.
## A (maybe relative) URL for static content. By default this comes from
## the main script, but we hope that user agents cache it.
## A (maybe relative) URL for static content. By default this comes from
## the main script, but we hope that user agents cache it.
- STATIC = _script_name + '/static')
+ STATIC = None)
+
+@CONF.hook
+def set_static():
+ if CFG.STATIC is None: CFG.STATIC = CFG.SCRIPT_NAME + '/static'
###--------------------------------------------------------------------------
### Escaping and encoding.
###--------------------------------------------------------------------------
### Escaping and encoding.