add request context_processor and printing serving hostname to footer
eventually this will make lead to making it a bit more docker/kubernetes friendly
This commit is contained in:
parent
5e1b23ee67
commit
ff8088defa
|
@ -4,7 +4,6 @@ from django.contrib.messages import constants as messages
|
|||
|
||||
SITE_ROOT = os.path.dirname(os.path.realpath(__file__))
|
||||
DEBUG = True
|
||||
|
||||
ADMINS = (
|
||||
# ('Your Name', 'your_email@domain.com'),
|
||||
)
|
||||
|
@ -63,6 +62,7 @@ TEMPLATES = [
|
|||
'OPTIONS': {
|
||||
'context_processors': [
|
||||
'django.contrib.auth.context_processors.auth',
|
||||
'django.core.context_processors.request',
|
||||
'django.template.context_processors.debug',
|
||||
'django.template.context_processors.i18n',
|
||||
'django.template.context_processors.media',
|
||||
|
|
|
@ -53,6 +53,7 @@
|
|||
</ul>
|
||||
{% endif %}
|
||||
{% block body %}{% endblock body %}
|
||||
Served by: {{ request.META.SERVER_NAME }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -40,6 +40,7 @@
|
|||
</div>
|
||||
</div>
|
||||
</form>
|
||||
Served by: {{ request.META.SERVER_NAME }}
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Reference in New Issue