Merge branch 'master' of github.com:asmaps/nsupdate.info
This commit is contained in:
commit
6e7907a95d
@ -2,7 +2,6 @@
|
|||||||
from django.views.generic import TemplateView
|
from django.views.generic import TemplateView
|
||||||
from django.http import HttpResponse
|
from django.http import HttpResponse
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
import json
|
|
||||||
|
|
||||||
|
|
||||||
class HomeView(TemplateView):
|
class HomeView(TemplateView):
|
||||||
@ -26,7 +25,5 @@ class OverviewView(TemplateView):
|
|||||||
|
|
||||||
|
|
||||||
def MyIpView(request):
|
def MyIpView(request):
|
||||||
return HttpResponse(
|
return HttpResponse(request.META['REMOTE_ADDR'], content_type="text/plain")
|
||||||
json.dumps({'ip': request.META['REMOTE_ADDR']}),
|
|
||||||
content_type="application/json")
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user