comparison sat_website/local_settings.py @ 61:c902ce09d4ed

put the external module import between try except
author souliane <souliane@mailoo.org>
date Fri, 15 May 2015 17:26:32 +0200
parents 0d20fb28c32e
children 26353615cc2e
comparison
equal deleted inserted replaced
60:0d20fb28c32e 61:c902ce09d4ed
148 ASSO_URL_RULES = 'http://repos.goffi.org/sat_docs/raw-file/tip/association/r%C3%A8glement%20int%C3%A9rieur.pdf' 148 ASSO_URL_RULES = 'http://repos.goffi.org/sat_docs/raw-file/tip/association/r%C3%A8glement%20int%C3%A9rieur.pdf'
149 149
150 # Import another settings file that can override these settings (for example to daily update the stats when you don't want a script to directly modify this file) 150 # Import another settings file that can override these settings (for example to daily update the stats when you don't want a script to directly modify this file)
151 from sys import path 151 from sys import path
152 path.append('/home/souliane') 152 path.append('/home/souliane')
153 from sat_website_external_settings import * 153 try:
154 from sat_website_external_settings import *
155 except ImportError:
156 pass