Best practices to deduplicate views.py code used by both Django templates and DRF?

前端 未结 0 1604
生来不讨喜
生来不讨喜 2020-12-22 12:01

In my Django project, I\'ve found that I have very similar logic for the get methods for both my web template views and DRF views. However, the last place wher

相关标签:
回答
  • 消灭零回复
提交回复
热议问题