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