From 87767dc2e2821b3b67af6633812e8e1efb059981 Mon Sep 17 00:00:00 2001 From: Fabian Faessler Date: Sat, 28 Sep 2013 16:50:13 +0200 Subject: [PATCH] pep8 stuff --- nsupdate/main/views.py | 6 +++++- nsupdate/nsupdate/settings.py | 4 ---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/nsupdate/main/views.py b/nsupdate/main/views.py index b5eeb97..d5d23b0 100644 --- a/nsupdate/main/views.py +++ b/nsupdate/main/views.py @@ -4,6 +4,7 @@ from django.http import HttpResponse from django.conf import settings import json + class HomeView(TemplateView): template_name = "base.html" @@ -12,6 +13,7 @@ class HomeView(TemplateView): context['nav_home'] = True return context + class OverviewView(TemplateView): template_name = "main/overview.html" @@ -24,4 +26,6 @@ class OverviewView(TemplateView): def MyIpView(request): - return HttpResponse(json.dumps({'ip':request.META['REMOTE_ADDR']}), content_type="application/json") \ No newline at end of file + return HttpResponse( + json.dumps({'ip': request.META['REMOTE_ADDR']}), + content_type="application/json") diff --git a/nsupdate/nsupdate/settings.py b/nsupdate/nsupdate/settings.py index f8f08b3..3b9926b 100644 --- a/nsupdate/nsupdate/settings.py +++ b/nsupdate/nsupdate/settings.py @@ -21,8 +21,6 @@ DATABASES = { } } - - SERVER = '85.10.192.104' # ns1.thinkmo.de (master / dynamic upd server for nsupdate.info) BASEDOMAIN = 'nsupdate.info' @@ -37,8 +35,6 @@ WWW_IPV6_IP = '2001:41d0:8:e00e::1' #UPDATE_ALGO = dns.tsig.HMAC_SHA512 UPDATE_KEY = 'YWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYQ==' - - # Hosts/domain names that are valid for this site; required if DEBUG is False # See https://docs.djangoproject.com/en/1.5/ref/settings/#allowed-hosts ALLOWED_HOSTS = ['nsupdate.info', 'www.nsupdate.info']