This repository contains a very basic setup demonstrating how to use Webpack's dev server alongside Django's to make development life easy by getting live reloading to work again. You'll need to keep two terminals open running the two dev servers concurrently.
It accompanies my article by the same name on Hackernoon here.
- Clone the repo
- Open 2 terminal windows - let's refer to them as A and B
- In A:
pipenv install
- In A:
pipenv shell
- In A:
python djrhr/manage.py migrate
- In A:
python djrhr/manage.py runserver
- In B:
npm install
- In B:
npm run start:dev
- Code away and watch Django reload whenever your React code changes.