Exemplo n.º 1
0
Arquivo: views.py Projeto: boxed/CMi
def set_location(request):
    get_weather(request.REQUEST['location'])
    return HttpResponse(':nothing')
Exemplo n.º 2
0
Arquivo: views.py Projeto: boxed/CMi
def index(request):
    weather = get_weather()
    return render(request, 'weather/weather.html', {'weather': weather})
Exemplo n.º 3
0
Arquivo: views.py Projeto: boxed/CMi
def index(request):
    weather = get_weather()
    return render(request, 'weather/weather.html', {'weather': weather})
Exemplo n.º 4
0
Arquivo: views.py Projeto: boxed/CMi
def set_location(request):
    get_weather(request.REQUEST['location'])
    return HttpResponse(':nothing')