general: serve all static files from /static/ (#11582)
This commit is contained in:
parent
f673e4793d
commit
0002a3f26c
|
@ -769,7 +769,7 @@ class AlternateRootDirectory(OldRootDirectory):
|
|||
('tmp-upload', 'tmp_upload'), 'json', '__version__',
|
||||
'themes', 'pages', 'payment', 'invoices', 'accesscode', 'roles',
|
||||
'api', 'code', 'fargo', 'tryauth', 'auth', 'preview',
|
||||
('reload-top', 'reload_top'),
|
||||
('reload-top', 'reload_top'), 'static',
|
||||
('i18n.js', 'i18n_js')]
|
||||
|
||||
admin = admin.AdminRootDirectory()
|
||||
|
@ -821,9 +821,6 @@ class AlternateRootDirectory(OldRootDirectory):
|
|||
if not self.backoffice:
|
||||
self.backoffice = get_publisher().backoffice_directory_class()
|
||||
|
||||
if path and path[0] in self.static_directories:
|
||||
return self.serve_statics(path)
|
||||
|
||||
try:
|
||||
return Directory._q_traverse(self, path)
|
||||
except errors.TraversalError, e:
|
||||
|
|
Reference in New Issue