I'm also having a problem with redirecting and IE6. User enters data in an HTML form, clicks save button and gets IE's "The page cannot be displayed" error. In this case the initial URL is /household123/client/ add/ and the browser should be redirected to /household123/. However, the URL is is still /household123/client/add/ when the IE error page is displayed. If page is refreshed, a blank HTML form is displayed (as one would expect). The original record was successfully saved to the DB. The behavior happens only intermittently - probably 3 times out of 4 the redirection happens as expected. IE 6 on WinXP with Django running on Win2003 with Apache 2.2 listening on port 8080. Code below.
I have some suspicion that an Apache misconfiguration is at fault as I'm also experiencing problems with CSS includes and images not being properly rendered, as if the browser has requested them but the server hasn't served them. For example, if I'm on a page that's properly displayed and refresh that page 5 times in a row, the browser might not render the CSS one of those times, even though the files are all there and nothing has changed between refreshes. This problem occurs with both Firefox and IE, whereas the redirection issue happens only with IE. def add(request, household_id): ClientForm = forms.models.form_for_model(Client) ClientForm.base_fields['Birth_Dat'].widget=forms.widgets.TextInput(attrs={'class':'w8em format-m-d-y divider-slash no-transparency' }) ClientForm.base_fields['Intake_Dat'].widget=forms.widgets.TextInput(attrs={'class':'w8em format-m-d-y divider-slash no-transparency' }) if request.method == 'POST': f = ClientForm(request.POST) if f.is_valid(): f2 = f.save(commit=False) f2.Add_Dat = datetime.now().strftime('%Y-%m-%d %H:%M:%S') f2.Add_User = request.user.username f2.household_id = household_id f2.save() return HttpResponseRedirect('/household' + household_id + '/') else: f = ClientForm() return render_to_response('client_form.html', {'form': f, 'request': request, 'media_url': settings.MEDIA_URL} ) --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---