コード例 #1
0
ファイル: views.py プロジェクト: Danniel123/Lab4
def addauthor(request):
	if request.GET:
 
		author = Author()
		author.AuthorID = request.GET['AuthorID']
		author.Name = request.GET['Name']
		author.Age = request.GET['Age']
		author.Country = request.GET['Country']
		author.save()
		return render_to_response('add_finish.html')
	else:
		return render_to_response('addauthor.html')