old_contents: import django
  
  __version__ = "2.4.0"
  
  if django.VERSION < (3, 2):
      default_app_config = "channels.apps.ChannelsConfig"
  DEFAULT_CHANNEL_LAYER = "default"
  
new_contents: __version__ = "2.4.0"
  
  try:
      import django
  
      if django.VERSION < (3, 2):
          default_app_config = "channels.apps.ChannelsConfig"
  except ModuleNotFoundError:
      pass
  
  DEFAULT_CHANNEL_LAYER = "default"
  
subject: Fix RTD build for missing Django dependency.