old_contents: # Copyright (C) 2010 Linaro Limited
  #
  # Author: Zygmunt Krynicki <zygmunt.krynicki@linaro.org>
  #
  # This file is part of Launch Control.
  #
  # Launch Control is free software: you can redistribute it and/or modify
  # it under the terms of the GNU Affero General Public License version 3
  # as published by the Free Software Foundation
  #
  # Launch Control is distributed in the hope that it will be useful,
  # but WITHOUT ANY WARRANTY; without even the implied warranty of
  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  # GNU General Public License for more details.
  #
  # You should have received a copy of the GNU Affero General Public License
  # along with Launch Control.  If not, see <http://www.gnu.org/licenses/>.
  
  """
  Settings module suitable for development
  """
  
  # CONFIGURATION
  # =============
  #
  # To configure the server create local_settings.py and change the
  # following line from `CONFIGURED = False' to `CONFIGURED = True'.
  #
  # Look at default_settings.py for explanation on what can be changed.
  #
  # When this is False a very simple configuration is created that allows
  # you to run the server directly from the development environment.
  CONFIGURED = False
  
  # DO NOT CHANGE SETTINGS BELOW
  # ============================
  from default_settings import *
  
  if not CONFIGURED:
      DATABASE_ENGINE = 'sqlite3'
      DATABASE_NAME = os.path.join(BASE_DIR, 'database.db')
      MEDIA_ROOT = os.path.join(BASE_DIR, "media")
      MEDIA_URL = '/site_media/'
      DEBUG = True
      TEMPLATE_DEBUG = DEBUG
      ADMINS = ()
      SECRET_KEY = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
      try:
          # You still might want this to configure email and
          # administration stuff. I do this for development 
          from local_settings import *
      except ImportError:
          pass
  else:
      from local_settings import *
  
new_contents: # Copyright (C) 2010 Linaro Limited
  #
  # Author: Zygmunt Krynicki <zygmunt.krynicki@linaro.org>
  #
  # This file is part of Launch Control.
  #
  # Launch Control is free software: you can redistribute it and/or modify
  # it under the terms of the GNU Affero General Public License version 3
  # as published by the Free Software Foundation
  #
  # Launch Control is distributed in the hope that it will be useful,
  # but WITHOUT ANY WARRANTY; without even the implied warranty of
  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  # GNU General Public License for more details.
  #
  # You should have received a copy of the GNU Affero General Public License
  # along with Launch Control.  If not, see <http://www.gnu.org/licenses/>.
  
  """
  Settings module suitable for development
  """
  
  # CONFIGURATION
  # =============
  #
  # To configure the server create local_settings.py and change the
  # following line from `CONFIGURED = False' to `CONFIGURED = True'.
  #
  # Look at default_settings.py for explanation on what can be changed.
  #
  # When this is False a very simple configuration is created that allows
  # you to run the server directly from the development environment.
  try:
      from local_settings import CONFIGURED
  except ImportError:
      CONFIGURED = False
  
  # DO NOT CHANGE SETTINGS BELOW
  # ============================
  from default_settings import *
  
  if not CONFIGURED:
      DATABASE_ENGINE = 'sqlite3'
      DATABASE_NAME = os.path.join(BASE_DIR, 'database.db')
      MEDIA_ROOT = os.path.join(BASE_DIR, "media")
      MEDIA_URL = '/site_media/'
      DEBUG = True
      TEMPLATE_DEBUG = DEBUG
      ADMINS = ()
      SECRET_KEY = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
      try:
          # You still might want this to configure email and
          # administration stuff. I do this for development 
          from local_settings import *
      except ImportError:
          pass
  else:
      from local_settings import *
  
subject: Fix settings.py to allow local_settings.py to define CONFIGURED=True