def get_versions(self):
     hosts = settings.STATIC_MANAGEMENT_HOSTNAMES
     i = 0
     for main_file in self.files_created:
         if i > len(hosts) - 1:
             i = 0
         version = get_version(
             os.path.join(settings.MEDIA_ROOT, main_file), main_file, settings.STATIC_MANAGEMENT_VERSIONER
         )
         self.versions[main_file] = version
         self.abs_versions[main_file] = hosts[i] + version
         i += 1
 def get_versions(self, css_only=False):
     hosts = settings.STATIC_MANAGEMENT_HOSTNAMES
     i = 0
     if css_only:
         files = self.css_files
     else:
         files = self.files_created
     for main_file in files:
         if i > len(hosts) - 1:
             i = 0
         version = get_version(os.path.join(settings.STATIC_MANAGEMENT_MEDIA_ROOT, main_file), main_file, settings.STATIC_MANAGEMENT_VERSIONER)
         self.versions[main_file] = version
         self.abs_versions[main_file] = hosts[i] + version
         i += 1
 def get_versions(self, css_only=False):
     hosts = settings.STATIC_MANAGEMENT_HOSTNAMES
     i = 0
     if css_only:
         files = self.css_files
     else:
         files = self.files_created
     for main_file in files:
         if i > len(hosts) - 1:
             i = 0
         version = get_version(os.path.join(settings.MEDIA_ROOT,
                                            main_file), main_file,
                               settings.STATIC_MANAGEMENT_VERSIONER)
         self.versions[main_file] = version
         self.abs_versions[main_file] = hosts[i] + version
         i += 1