Skip to content

Commit

Permalink
updated web_url
Browse files Browse the repository at this point in the history
  • Loading branch information
snyaggarwal committed Feb 8, 2021
1 parent 90fc43a commit c9d526f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions core/common/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,9 +459,14 @@ def jsonify_safe(value):


def web_url():
if not settings.ENV or settings.ENV in ['development', 'ci']:
env = settings.ENV
if not env or env in ['development', 'ci']:
return 'http://localhost:4000'
return settings.API_BASE_URL.replace('api.', '')

if env == 'production':
return "https://app.aws.openconceptlab.org"

return "https://app.{}.aws.openconceptlab.org".format(env)


def get_resource_class_from_resource_name(resource): # pylint: disable=too-many-return-statements
Expand Down

0 comments on commit c9d526f

Please sign in to comment.