This project uses django for backend and react for frontend
- Change the
REACT_APP_BACKEND_URI
to the production website URL - Build your react app with command
npm run build
- collect the static files
python manage.py collectstatic
- transfer the
index.html
frombuild
folder of react totemplates
folder in django - make sure the root url
/
is serving thisindex.html
- start your django server
python manage.py runserver
npm run build
python manage.py collectstatic --no-input
cp build/index.html templates/
cp build/manifest.json static/
cp build/robots.txt static/
python manage.py runserver