Multipage web application using django, react and webpack
- CD to the location where
manage.py
is located. - Create a virtual environment using python3:
python -m venv venv
. - Activate virtual environment:
source venv/bin/activate
- Install requirements:
pip install -r requirements.txt
. - CD to frontend directory
cd frontend
- Install node packages:
npm install
- Open first terminal where manage.py is located and run
python manage.py runserver
, to run django server. - Open second terminal inside frontend directory
cd frontend
- For development purpose run
npm run watch
. - For production run:
npm run build
.
https://tech.raturi.in/multi-page-web-application-using-django-react-and-webpack/