Skip to content

Commit

Permalink
Merge pull request #96 from uc-cdis/fix/settings
Browse files Browse the repository at this point in the history
fix(settings): continue if loca_settings missing
  • Loading branch information
philloooo authored Feb 12, 2018
2 parents f9b18f9 + 255963e commit e886f68
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion fence/settings.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
from cdislogging import get_logger
from collections import OrderedDict
from datetime import timedelta
import os

logger = get_logger(__name__)
# default settings if local_settings is not present
BASE_URL = 'http://localhost'
# local_settings is not installed under fence module in prod
from local_settings import *
try:
from local_settings import *
except:
logger.warn("local_settings is not found")



# Use this setting when fence will be deployed in such a way that fence will
Expand Down

0 comments on commit e886f68

Please sign in to comment.