old_contents: """
  
      Geotrek startup script.
  
      This is executed only once at startup.
  
  """
  from south.signals import post_migrate
  from django.conf import settings
  
  from mapentity.helpers import api_bbox
  
  from geotrek.common.utils.postgresql import load_sql_files
  
  
  """
      http://djangosnippets.org/snippets/2311/
      Ensure South will update our custom SQL during a call to `migrate`.
  """
  
  def run_initial_sql(sender, **kwargs):
      app_label = kwargs.get('app')
      load_sql_files(app_label)
  
  
  post_migrate.connect(run_initial_sql, dispatch_uid="geotrek.core.sqlautoload")
  
  
  """
      Computed client-side setting.
  """
  
  settings.LEAFLET_CONFIG['SPATIAL_EXTENT'] = api_bbox(settings.SPATIAL_EXTENT, buffer=0.1)
  
new_contents: """
  
      Geotrek startup script.
  
      This is executed only once at startup.
  
  """
  from south.signals import post_migrate
  from django.conf import settings
  
  from mapentity.helpers import api_bbox
  
  from geotrek.common.utils.postgresql import load_sql_files
  
  
  """
      http://djangosnippets.org/snippets/2311/
      Ensure South will update our custom SQL during a call to `migrate`.
  """
  
  def run_initial_sql(sender, **kwargs):
      app_label = kwargs.get('app')
      load_sql_files(app_label)
  
  
  post_migrate.connect(run_initial_sql, dispatch_uid="geotrek.core.sqlautoload")
  
  
  """
      Computed client-side setting.
  """
  
  settings.LEAFLET_CONFIG['SPATIAL_EXTENT'] = api_bbox(settings.SPATIAL_EXTENT, buffer=0.5)
  
subject: Increase viewport margin (10% was not enough for small screens)