from django.shortcuts import render
from django.http import HttpResponse, JsonResponse


# Create your views here.

def weather(request, city, year):
    print(city)
    print(year)
    return HttpResponse("ok")


def demo_response(request):
    request.session['user_id'] = 100
    request.session['username'] = 'python'

    return JsonResponse({'city': 'beijing', 'subject': 'python'})

a0bf3f4ec5ed047852682c5232fffa6fc2acd5ba
<mask token>

<mask token>


def weather(request, city, year):
    print(city)
    print(year)
    return HttpResponse('ok')


<mask token>

<mask token>


def weather(request, city, year):
    print(city)
    print(year)
    return HttpResponse('ok')


def demo_response(request):
    request.session['user_id'] = 100
    request.session['username'] = 'python'
    return JsonResponse({'city': 'beijing', 'subject': 'python'})

from django.shortcuts import render
from django.http import HttpResponse, JsonResponse


def weather(request, city, year):
    print(city)
    print(year)
    return HttpResponse('ok')


def demo_response(request):
    request.session['user_id'] = 100
    request.session['username'] = 'python'
    return JsonResponse({'city': 'beijing', 'subject': 'python'})

from django.shortcuts import render
from django.http import HttpResponse, JsonResponse


# Create your views here.

def weather(request, city, year):
    print(city)
    print(year)
    return HttpResponse("ok")


def demo_response(request):
    request.session['user_id'] = 100
    request.session['username'] = 'python'

    return JsonResponse({'city': 'beijing', 'subject': 'python'})
