Here is the py file content: #!/usr/bin/python # -*- coding: utf-8 -*- import os from django.shortcuts import render_to_response from django.http import HttpResponseRedirect from django.http import HttpResponse from model.BlogModel import *
import sys reload(sys) sys.setdefaultencoding('utf-8') def process(request): blog = BlogModel() blog.author = str(request.POST['author']) blog.title = str(request.POST['title']) blog.content = str(request.POST['content']) blog.put() return HttpResponseRedirect("/") When I execute this process methed, it can put the data into database but doesn't redirect to "/". what's wrong with it? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---