Beispiel #1
0
def put_msg_to_db(request):
    name = request.REQUEST["name"]
    content = request.REQUEST["content"]
    wall_model.put_text(name, content)
    return HttpResponse("ok")
import wall_model
import cgi

form_data = cgi.FieldStorage()
wall_model.put_text(form_data['name'].value, form_data['content'].value)