Exemplo n.º 1
0
 def _create_static_file(self, name, content):
     file_path = os.path.join(settings.STATIC_ROOT, name)
     with open(file_path, 'wb') as f:
         self.created_static_files.append(file_path)
         f.write(content)
     storage = PipelineCachedStorage()
     return storage.url(name)
Exemplo n.º 2
0
 def _create_static_file(self, name, content):
     file_path = os.path.join(settings.STATIC_ROOT, name)
     with open(file_path, 'wb') as f:
         self.created_static_files.append(file_path)
         f.write(content)
     storage = PipelineCachedStorage()
     return storage.url(name)