Merge branch 'static_bug' into develop

This commit is contained in:
Micah Lee 2019-10-13 09:55:51 -07:00
commit e80560951e
No known key found for this signature in database
GPG Key ID: 403C2657CD994F73

View File

@ -68,6 +68,9 @@ class Web:
self.app = Flask( self.app = Flask(
__name__, __name__,
static_folder=self.common.get_resource_path("static"), static_folder=self.common.get_resource_path("static"),
static_url_path="/static_".format(
self.common.random_string(16)
), # randomize static_url_path to avoid making /static unusable
template_folder=self.common.get_resource_path("templates"), template_folder=self.common.get_resource_path("templates"),
) )
self.app.secret_key = self.common.random_string(8) self.app.secret_key = self.common.random_string(8)