Add default settings retrieval in static_view method of BaseApp

1 parent 2a9d32e0
...@@ -424,6 +424,8 @@ class BaseApp(): ...@@ -424,6 +424,8 @@ class BaseApp():
return open(fullpath) return open(fullpath)
def static_view(self, config, settings=None): def static_view(self, config, settings=None):
if not settings:
settings = get_settings()
self.temp_files = settings.get("temp_files") self.temp_files = settings.get("temp_files")
if not os.path.exists(self.temp_files): if not os.path.exists(self.temp_files):
os.makedirs(self.temp_files) os.makedirs(self.temp_files)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!