Merge branch 'master' of github.com:asmaps/nsupdate.info

This commit is contained in:
Thomas Waldmann 2013-09-28 17:48:37 +02:00
commit 6e7907a95d

View File

@ -2,7 +2,6 @@
from django.views.generic import TemplateView
from django.http import HttpResponse
from django.conf import settings
import json
class HomeView(TemplateView):
@ -26,7 +25,5 @@ class OverviewView(TemplateView):
def MyIpView(request):
return HttpResponse(
json.dumps({'ip': request.META['REMOTE_ADDR']}),
content_type="application/json")
return HttpResponse(request.META['REMOTE_ADDR'], content_type="text/plain")