old_contents: """Django-Prometheus
  
  https://github.com/korfuri/django-prometheus
  """
  
  # Import all files that define metrics. This has the effect that
  # `import django_prometheus` will always instanciate all metric
  # objects right away.
  import django_prometheus.middleware
  import django_prometheus.models
  
  # Import pip_prometheus to export the pip metrics automatically.
  import pip_prometheus
  
  default_app_config = 'django_prometheus.apps.DjangoPrometheusConfig'
  
new_contents: """Django-Prometheus
  
  https://github.com/korfuri/django-prometheus
  """
  
  # Import all files that define metrics. This has the effect that
  # `import django_prometheus` will always instanciate all metric
  # objects right away.
  import django_prometheus.middleware
  import django_prometheus.models
  
  # Import pip_prometheus to export the pip metrics automatically.
  try:
      import pip_prometheus
  except ImportError:
      # If people don't have pip, don't export anything.
      pass
  
  default_app_config = 'django_prometheus.apps.DjangoPrometheusConfig'
  
subject: Make the use of pip-prometheus optional.