pep8 stuff

This commit is contained in:
Fabian Faessler 2013-09-28 16:50:13 +02:00
parent a2a5f8e7f8
commit 87767dc2e2
2 changed files with 5 additions and 5 deletions

View File

@ -4,6 +4,7 @@ from django.http import HttpResponse
from django.conf import settings from django.conf import settings
import json import json
class HomeView(TemplateView): class HomeView(TemplateView):
template_name = "base.html" template_name = "base.html"
@ -12,6 +13,7 @@ class HomeView(TemplateView):
context['nav_home'] = True context['nav_home'] = True
return context return context
class OverviewView(TemplateView): class OverviewView(TemplateView):
template_name = "main/overview.html" template_name = "main/overview.html"
@ -24,4 +26,6 @@ class OverviewView(TemplateView):
def MyIpView(request): def MyIpView(request):
return HttpResponse(json.dumps({'ip':request.META['REMOTE_ADDR']}), content_type="application/json") return HttpResponse(
json.dumps({'ip': request.META['REMOTE_ADDR']}),
content_type="application/json")

View File

@ -21,8 +21,6 @@ DATABASES = {
} }
} }
SERVER = '85.10.192.104' # ns1.thinkmo.de (master / dynamic upd server for nsupdate.info) SERVER = '85.10.192.104' # ns1.thinkmo.de (master / dynamic upd server for nsupdate.info)
BASEDOMAIN = 'nsupdate.info' BASEDOMAIN = 'nsupdate.info'
@ -37,8 +35,6 @@ WWW_IPV6_IP = '2001:41d0:8:e00e::1'
#UPDATE_ALGO = dns.tsig.HMAC_SHA512 #UPDATE_ALGO = dns.tsig.HMAC_SHA512
UPDATE_KEY = 'YWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYQ==' UPDATE_KEY = 'YWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYQ=='
# Hosts/domain names that are valid for this site; required if DEBUG is False # 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 # See https://docs.djangoproject.com/en/1.5/ref/settings/#allowed-hosts
ALLOWED_HOSTS = ['nsupdate.info', 'www.nsupdate.info'] ALLOWED_HOSTS = ['nsupdate.info', 'www.nsupdate.info']