...because Django can't be this horribly broken. I'm sure of that much. But I've been beating my head against the wall for quite some time now and worst of all, I've got a deadline. So here's me, on the mailing list.
What I'm trying to accomplish here is a simple POST form that posts to the same view. Caching is turned off. I'm not using Django's template system, but Kid. However, this shouldn't be a problem. As for the version, then I did an svn update about five minutes ago, while this same problem has also been present on the version from last night and on the version from about two weeks ago. Anyhow, the code. URL: (r'^make/$', 'latestbooks.latest.views.make_sidebar'), HTML: <form action="/make" method="POST"> <select name="days" size="1"> <option selected="1" value="0">Ainult samal paeval ilmunud raamatud</option> <option value="1">Täna ja eile ilmunud raamatud</option> <option value="2">Täna, eile ja üleeile ilmunud raamatud</option> </select> <input type="text" name="foo" value="bar" /> <input type="submit" value="Edasi" /> </form> VIEW: def make_sidebar(request): print "POST.keys()", request.POST.keys() print "GET.keys()", request.GET.keys() RESULT: [07/Jun/2006 04:50:23] "POST /make HTTP/1.1" 301 0 POST.keys() [] GET.keys() [] [07/Jun/2006 04:50:23] "GET /make/ HTTP/1.1" 200 1063 [07/Jun/2006 04:50:23] "GET /media/latestbooks.css HTTP/1.1" 304 0 I have another view working where the request.GET dictionary gets constructed properly when I pass the query string in the URL itself. (e.g., /?foo=bar&and=etc) So I don't think it's problems with any settings as such. The problem might be in my form. However, the XHTML looks valid, from what I can tell. This is driving me nuts, and I don't mean in the funny pirate joke sort of way. Help? Elver --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---