old_contents: ###
  ### Script for importing courseware from XML format
  ###
  
  from django.core.management.base import NoArgsCommand
  from django.core.cache import caches
  
  
  class Command(NoArgsCommand):
      help = 'Import the specified data directory into the default ModuleStore'
  
      def handle_noargs(self, **options):
          staticfiles_cache = caches['staticfiles']
          staticfiles_cache.clear()
  
new_contents: """
  Django management command to clear the 'staticfiles' Django cache
  """
  
  from __future__ import print_function
  
  from django.core.management.base import BaseCommand
  from django.core.cache import caches
  
  
  class Command(BaseCommand):
      """
      Implementation of the management command
      """
  
      help = 'Empties the Django caches["staticfiles"] cache.'
  
      def handle(self, *args, **_):
          staticfiles_cache = caches['staticfiles']
          staticfiles_cache.clear()
          print("Cache cleared.")
  
subject: Update clear_collectstatic_cache management command to Django 1.11 spec