diff --git a/server.py b/server.py index ffce8be..5ac69f6 100644 --- a/server.py +++ b/server.py @@ -20,7 +20,7 @@ exchange = { 'rate': 0 } - +DEV = os.getenv('DEV', 'false').lower() in ['true', '1', 'yes'] tlds = ['australia','newzealand'] #Assets routes @@ -400,7 +400,7 @@ def index(): year = datetime.datetime.now().year hns_scripts = '' - if 'localhost' in request.host or '127.0.0.1' in request.host: + if 'localhost' in request.host or '127.0.0.1' in request.host or DEV: hns_scripts = '' tld = request.host.split('.')[-1] @@ -419,7 +419,7 @@ def catch_all(path): year = datetime.datetime.now().year hns_scripts = '' - if 'localhost' in request.host or '127.0.0.1' in request.host: + if 'localhost' in request.host or '127.0.0.1' in request.host or DEV: hns_scripts = '' # If file exists, load it diff --git a/templates/404.html b/templates/404.html index 73f54c9..18ce509 100644 --- a/templates/404.html +++ b/templates/404.html @@ -6,8 +6,8 @@
HTTP: 404