On Mon, 2007-03-12 at 10:22 +0000, shevken wrote: > Anyway to return response code 204 from a view?
Presumably a typo and you mean 304 (not-modified), not 204 (empty content). > So that the request page do not get refreshed. Return an HttpResponseNotModified instance from your view function. See http://www.djangoproject.com/documentation/request_response/#httpresponse-subclasses and the example in the immediately following section for how to HttpResponse sub-classes. Regards, Malcolm --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---

