From a2a5f8e7f85deff2e82252daa9c2c34078a68914 Mon Sep 17 00:00:00 2001 From: Fabian Faessler Date: Sat, 28 Sep 2013 16:25:19 +0200 Subject: [PATCH] used the url from the settings for the ajax request --- nsupdate/main/templates/main/overview.html | 8 ++++---- nsupdate/main/views.py | 3 +++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/nsupdate/main/templates/main/overview.html b/nsupdate/main/templates/main/overview.html index 8e7e3f5..5ed2db8 100644 --- a/nsupdate/main/templates/main/overview.html +++ b/nsupdate/main/templates/main/overview.html @@ -4,8 +4,8 @@ diff --git a/nsupdate/main/views.py b/nsupdate/main/views.py index a651baa..b5eeb97 100644 --- a/nsupdate/main/views.py +++ b/nsupdate/main/views.py @@ -1,6 +1,7 @@ # -*- coding: utf-8 -*- from django.views.generic import TemplateView from django.http import HttpResponse +from django.conf import settings import json class HomeView(TemplateView): @@ -17,6 +18,8 @@ class OverviewView(TemplateView): def get_context_data(self, *args, **kwargs): context = super(OverviewView, self).get_context_data(*args, **kwargs) context['nav_overview'] = True + context['ipv4'] = settings.WWW_IPV4_HOST + context['ipv6'] = settings.WWW_IPV6_HOST return context