摘要:
通用的视图 Django’s generic views... were developed as a shortcut for common usage patterns... 它们采取一些常见的习语和模式,在视图开发中创建并抽象,以便可以快速编写数据的常见视图,而无需重复。 - Django文档 阅读全文
摘要:
Class-based Views Django's class-based views are a welcome departure from the old-style views. - Reinout van Rees REST框架提供了一个APIView类,它是Django-View cl 阅读全文
摘要:
Responses 与基本的HttpResponse对象不同,TemplateResponse对象保留 the details of the context that was provided by the view to compute the response。The final output 阅读全文