code: def collect(self):
          
  
          self.ignore_patterns = [
              '*.png', '*.jpg', '*.js', '*.gif', '*.ttf', '*.md', '*.rst',
              '*.svg']
          page_themes = PageTheme.objects.all()
  
          for finder in get_finders():
              for path, storage in finder.list(self.ignore_patterns):
                  for t in page_themes:
                      static_path = 'themes/{0}'.format(t.name.split('/')[-1])
                      if static_path in path:
                          try:
                              page_theme = PageTheme.objects.get(id=t.id)
                          except PageTheme.DoesNotExist:
                              raise Exception(
                                  "Run sync_themes before this command")
                          except Exception as e:
                              self.stdout.write(
                                  "Cannot load {} into database original error: {}".format(t, e))
  
                          # find and load skins
                          skins_path = os.path.join(
                              storage.path('/'.join(path.split('/')[0:-1])))
                          for dirpath, skins, filenames in os.walk(skins_path):
                              for skin in [s for s in skins if s not in ['fonts']]:
                                  for skin_dirpath, skins, filenames in os.walk(os.path.join(dirpath, skin)):
                                      skin, created = PageColorScheme.objects.get_or_create(
                                          theme=page_theme, label=skin, name=skin.title())
                                      for f in filenames:
                                          if 'styles' in f:
                                              with codecs.open(os.path.join(skin_dirpath, f)) as style_file:
                                                  skin.styles = style_file.read()
                                          elif 'variables' in f:
                                              with codecs.open(os.path.join(skin_dirpath, f)) as variables_file:
                                                  skin.variables = variables_file.read()
                                      skin.save()
                                      self.skins_updated += 1
  
          self.page_themes_updated += len(page_themes)
docs: Load and save ``PageColorScheme`` for every ``PageTheme``
  
          .. code-block:: bash
  
              static/themes/bootswatch/united/variables.scss
              static/themes/bootswatch/united/styles.scss