Project

General

Profile

« Previous | Next » 

Revision 459298cc

Added by Serghei Mihai almost 8 years ago

settings: get local settings from CORBO_SETTINGS_FILE environment variable

View differences:

corbo/settings.py
115 115
    AUTHENTICATION_BACKENDS = ('mellon.backends.SAMLBackend', )
116 116
    LOGIN_URL = 'mellon_login'
117 117
    LOGOUT_URL = 'mellon_logout'
118

  
119
local_settings_file = os.environ.get('CORBO_SETTINGS_FILE',
120
        os.path.join(os.path.dirname(__file__), 'local_settings.py'))
121
if os.path.exists(local_settings_file):
122
    execfile(local_settings_file)

Also available in: Unified diff