Django, React, Webpack, Babel boilerplate

Django, Python, ReactJS

TLDR; View full codes from Github/iamashraful Last couple of days, I was looking for the answer for Django and React together. I have tried with create-react-app with django. I was succeed. But I wasn’t happy. Because Every time I need to build react files and refresh the browser. Actually I just hate it. So, after doing some […]

December 22, 2017

Django FilteredRelation


Overview FilteredRelation() comes from Django 2.0. It helps to make the query faster than the filter in some cases. Suppose you have Blog posts. Now you want to filter out all the published posts who have author name, John.  FilteredRelation(relation_name, condition=Q()) Here, relation_name is the field that you want to filter. condition=Q() accept filtering object. Django prefer Q() […]

December 6, 2017