mirror of https://github.com/snachodog/mybuddy.git
Add INTERNAL_IPS to development settings and check the debug varibale in templates.
This commit is contained in:
parent
ed96814b10
commit
dd6eb954c3
|
@ -5,6 +5,11 @@ from .base import *
|
||||||
|
|
||||||
SECRET_KEY = '(z4ha%^_=7#jco0wmna_#0jvyyt!03#f7l_y%@1x(a2xj$nrx%'
|
SECRET_KEY = '(z4ha%^_=7#jco0wmna_#0jvyyt!03#f7l_y%@1x(a2xj$nrx%'
|
||||||
DEBUG = True
|
DEBUG = True
|
||||||
|
# Enables the debug template varaible.
|
||||||
|
INTERNAL_IPS = (
|
||||||
|
'0.0.0.0',
|
||||||
|
'127.0.0.1',
|
||||||
|
)
|
||||||
ALLOWED_HOSTS = ['*']
|
ALLOWED_HOSTS = ['*']
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -7,16 +7,27 @@
|
||||||
<meta name="viewport"
|
<meta name="viewport"
|
||||||
content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||||
<title>{% block title %}{% endblock %} | Baby Blotter</title>
|
<title>{% block title %}{% endblock %} | Baby Blotter</title>
|
||||||
<link rel="stylesheet" href="{% static "babyblotter/css/app.css" %}" />
|
{% if debug %}
|
||||||
<link rel="stylesheet" href="{% static "babyblotter/css/vendor.css" %}" />
|
<link rel="stylesheet" href="{% static "babyblotter/css/app.css" %}" />
|
||||||
|
<link rel="stylesheet" href="{% static "babyblotter/css/vendor.css" %}" />
|
||||||
|
{% else %}
|
||||||
|
<link rel="stylesheet" href="{% static "babyblotter/css/app.min.css" %}" />
|
||||||
|
<link rel="stylesheet" href="{% static "babyblotter/css/vendor.min.css" %}" />
|
||||||
|
{% endif %}
|
||||||
</head>
|
</head>
|
||||||
<body style="padding-top: 5rem;">
|
<body style="padding-top: 5rem;">
|
||||||
|
|
||||||
{% block nav %}{% endblock %}
|
{% block nav %}{% endblock %}
|
||||||
{% block page %}{% endblock %}
|
{% block page %}{% endblock %}
|
||||||
|
|
||||||
<script src="{% static "babyblotter/js/vendor.js" %}"></script>
|
{% if debug %}
|
||||||
<script src="{% static "babyblotter/js/app.js" %}"></script>
|
<script src="{% static "babyblotter/js/vendor.js" %}"></script>
|
||||||
|
<script src="{% static "babyblotter/js/app.js" %}"></script>
|
||||||
|
{% else %}
|
||||||
|
<script src="{% static "babyblotter/js/vendor.min.js" %}"></script>
|
||||||
|
<script src="{% static "babyblotter/js/app.min.js" %}"></script>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% block javascript %}{% endblock %}
|
{% block javascript %}{% endblock %}
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
Loading…
Reference in New Issue