stingh711.hashnode.devUse django-filter in Django Rest FrameworkFor a REST list API, filtering and sorting are the basic requirements. Using django-filter, we can add these functions with only a few lines of codes. For example, if we have a model as follows, class Product(models.Model): name = models.CharFiel...Oct 27, 2020·2 min read
stingh711.hashnode.devUse vim-projectionist to jump around in django projectsWhen working on django projects, I need to switching among django’s model, view, url, admin and serializers files. I used to use fzf.vim to jump around until I found vim-projectionist. With this plugin, you can create a “map” of your source code, wit...Oct 27, 2020·1 min read