2013-10-08 46 views

回答

0

通过提高ImmediateHttpResponse例外,其中一个tastypie.httpHttpResponse(来自Django)子类。

from tastypie.exceptions import ImmediateHttpResponse 
from tastypie.http import HttpSeeOther 

... 
    raise ImmediateHttpResponse(HttpSeeOther()) 
相关问题