make home view customizable via includes
This commit is contained in:
parent
f12539aee8
commit
9dcefda8d3
@ -3,11 +3,13 @@
|
||||
{% load static %}
|
||||
|
||||
{% block content %}
|
||||
{% include "main/includes/home_top.html" %}
|
||||
<div class="jumbotron">
|
||||
<h4>Your current IP(s):</h4>
|
||||
<h1>IPv4: <span id="ipv4">{{ request.session.ipv4 }}</span></h1>
|
||||
<h3>IPv6: <span id="ipv6">{{ request.session.ipv6 }}</span></h3>
|
||||
</div>
|
||||
{% include "main/includes/home_middle.html" %}
|
||||
<div class="row">
|
||||
<div class="col-sm-12" style="text-align: center">
|
||||
<h1>{{ WWW_HOST }} — the Dynamic DNS service you waited for.</h1>
|
||||
@ -39,4 +41,5 @@
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
{% include "main/includes/home_bottom.html" %}
|
||||
{% endblock %}
|
||||
|
1
nsupdate/main/templates/main/includes/home_bottom.html
Normal file
1
nsupdate/main/templates/main/includes/home_bottom.html
Normal file
@ -0,0 +1 @@
|
||||
<div id="home_bottom"></div>
|
1
nsupdate/main/templates/main/includes/home_middle.html
Normal file
1
nsupdate/main/templates/main/includes/home_middle.html
Normal file
@ -0,0 +1 @@
|
||||
<div id="home_middle"></div>
|
1
nsupdate/main/templates/main/includes/home_top.html
Normal file
1
nsupdate/main/templates/main/includes/home_top.html
Normal file
@ -0,0 +1 @@
|
||||
<div id="home_top"></div>
|
@ -139,6 +139,7 @@ ROOT_URLCONF = 'nsupdate.urls'
|
||||
WSGI_APPLICATION = 'nsupdate.wsgi.application'
|
||||
|
||||
TEMPLATE_DIRS = (
|
||||
# you can add site-specific template dirs here to customize nsupdate.info
|
||||
# Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
|
||||
# Always use forward slashes, even on Windows.
|
||||
# Don't forget to use absolute paths, not relative paths.
|
||||
|
Loading…
x
Reference in New Issue
Block a user