コード例 #1
0
ファイル: views.py プロジェクト: sunjiesh/PythonShowcase
def getWeatherFromIp(request):
    ip=request.GET['ip']
    print ip
    cityName=service.getCityFromIp(ip)
    print cityName
    weather=service.getWeatherFromCity(cityName)
    return HttpResponse(weather) 
コード例 #2
0
def getWeatherFromIp(request):
    ip = request.GET["ip"]
    print ip
    cityName = service.getCityFromIp(ip)
    print cityName
    weather = service.getWeatherFromCity(cityName)
    return HttpResponse(weather)
コード例 #3
0
ファイル: views.py プロジェクト: sunjiesh/PythonShowcase
def getCityFromIp(request):
    ip=request.GET['ip']
    print ip
    city=service.getCityFromIp(ip)
    print city
    return HttpResponse(city)
コード例 #4
0
def getCityFromIp(request):
    ip = request.GET["ip"]
    print ip
    city = service.getCityFromIp(ip)
    print city
    return HttpResponse(city)