This is an app that doesn't do anything! Here's what it looks like:
This project scaffold demonstrates how to set up a Django project that serves a React front end.
- A basic
app/
set up with Django settings andurls.py
. - A
backend/
with one Django model,Idea
, and Django Rest Framework'sapi/
basics.- Browse the API at
http://localhost:8000/api/
- Browse the API at
- A
frontend/
withsrc/
, which is loaded with Djangotemplates/
, to help you get started with React.
Clone repo:
git clone https://github.com/victoriadrake/react-in-django.git
Install dependencies:
pipenv install
Run the Django server:
pipenv run python manage.py runserver
Build out this starting point into an app that actually does stuff!
The Django Security Check GitHub Action can help you automatically check for security misconfigurations in your production Django application. See the security-check.yml
workflow file for an example.