Skip to content
Snippets Groups Projects
Commit 503b4a8e authored by James Graham's avatar James Graham
Browse files

Use wildcard ALLOWED_HOSTS if in debug mode

Move JavaScript libraries to end of body
parent f3d02505
Branches
Tags
1 merge request!60Merge dev pre-hackday
......@@ -54,6 +54,12 @@ SECRET_KEY = config('SECRET_KEY')
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = config('DEBUG', default=False, cast=bool)
if DEBUG:
ALLOWED_HOSTS = [
'*',
]
else:
ALLOWED_HOSTS = [
'localhost',
'pedasi-dev.eastus.cloudapp.azure.com',
......
......@@ -4,10 +4,11 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>PEDASI</title>
{% bootstrap_css %}
{% bootstrap_javascript jquery=True %}
<!-- Font Awesome - https://fontawesome.com -->
<link rel="stylesheet"
......@@ -97,5 +98,6 @@
{% endblock %}
</div>
{% bootstrap_javascript jquery=True %}
</body>
</html>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment