# 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/'
    LOGIN_REDIRECT_URL = '/'
    DEBUG = True
    TEMPLATE_DEBUG = DEBUG
    ADMINS = ()
    SECRET_KEY = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
    EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
    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 *

@@ -1151,16 +1151,87 @@
 onment.%0A
+try:%0A    from local_settings import CONFIGURED%0Aexcept ImportError:%0A    
 CONFIGUR

Fix settings.py to allow local_settings.py to define CONFIGURED=True