The view blog.views.create didn't return an HttpResponse object. It returned None instead.
def home(request):
story = Story.objects.all()
return render_to_response('show.html',{'story':story})
def create(request):
if request.method == "get":
form = storyform()
return render(request,'form.html',{'form':form})
elif request.method == "post":
form= storyform(request.POST)
form.save()
return HttpResponseRedirect('/home')
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/067af0b0-6761-4daf-a1c0-02fcd1585048%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.