(08-Apr-2022) An MVC Python Django (5.2 LTS) boilerplate with React 19 Redux SPA.
Postman API Collection for Python React Boilerplate.
Postman API Environment for Python React Boilerplate.
# Make sure to set DEBUG to True. This is required for running the React app locally.
cp .env.example .env
python -m venv env
source env/bin/activate
pip install -r requirements.txt
python manage.py makemigrations
python manage.py migrate
python manage.py seed
cd frontend
cp .env.example .env
yarn
yarn build
# In root .env, set DEBUG=True
yarn start# Seed database with demo user (Jane Doe) and 30 fake users (default)
python manage.py seed
# Seed a specific number of fake users
python manage.py seed --users 50
# Seed with a custom password (default: secret)
python manage.py seed --password custompass
# Undo/clean seeded users from the database
python manage.py seed --undopython manage.py runserver
# http://localhost:8000alias compose='docker-compose -f local.yml'
compose build
compose up
# http://localhost:8000The admin user details are set in ./compose/local/django/start.
export DJANGO_SUPERUSER_PASSWORD="${DJANGO_SUPERUSER_PASSWORD:-secret}"
python manage.py createsuperuser \
--no-input \
--username admin_user \
--email admin@django-app.comMail environment credentials are at .env.
The Mailhog Docker mail client runs at http://localhost:8025. This is running in the above image that is receiving emails from your Django app.
python manage.py shell -i ipythonpython manage.py show_urlsThis includes the React app build files.
python manage.py collectstaticPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.


