Skip to content

Stack update: Django 5.1, Tailwind/Webpack/Jest fixes, validation#69

Merged
marcelovicentegc merged 2 commits intomainfrom
emdash/django-react-typescript-update-8pc
Mar 23, 2026
Merged

Stack update: Django 5.1, Tailwind/Webpack/Jest fixes, validation#69
marcelovicentegc merged 2 commits intomainfrom
emdash/django-react-typescript-update-8pc

Conversation

@marcelovicentegc
Copy link
Copy Markdown
Owner

Summary

Updates the boilerplate stack and fixes build/test validation for both backend and frontend.

Backend

  • Django bumped to ^5.1 (pyproject.toml + poetry.lock).
  • Removed deprecated USE_L10N from core/settings/base.py (invalid in Django 5+).
  • Updated settings docstrings to current stable docs URLs.
  • Set DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField" to clear models.W042 warnings.

Frontend

  • Tailwind: content paths now include .tsx and lib/**/*.{js,jsx,ts,tsx} so utilities used in React components are not purged.
  • Webpack: replaced file-loader with built-in asset/resource (output under assets/[name][ext]).
  • Jest: added jest, ts-jest, jest-environment-jsdom, @types/jest and frontend/jest.config.js; test script uses --passWithNoTests so CI passes when there are no tests yet.
  • TypeScript: fixed TS7011 in lib/api/use-api.ts by adding explicit return types to .catch() callbacks and emptyPaginatedResponse for the paginated error fallback.

Docs

  • docs/STACK_ANALYSIS_AND_UPDATES.md: analysis of current vs latest versions (Django 6, React 19, Tailwind v4), deprecated/unnecessary deps, and notes on Tailwind as the default AI-friendly design system.

README

  • Stack table updated to "Django 5.1+"; typo fix ("non-opinionated").

Validation

  • poetry run python manage.py check
  • ruff check
  • TEST=1 poetry run python manage.py test
  • pnpm run test:static
  • pnpm run build
  • pnpm run test

Made with Cursor

marcelovicentegc and others added 2 commits February 17, 2026 14:40
…, Jest)

Backend:
- Bump Django to ^5.1 (pyproject.toml + poetry.lock)
- Remove deprecated USE_L10N from settings (Django 5+)
- Update settings docstrings to stable docs URLs
- Add DEFAULT_AUTO_FIELD = BigAutoField to clear model warnings

Frontend:
- Fix Tailwind content paths to include .tsx (index.tsx, lib/**/*.{js,jsx,ts,tsx})
- Replace file-loader with Webpack 5 asset/resource
- Add Jest + ts-jest + jest-environment-jsdom and jest.config.js
- Add --passWithNoTests to test script for boilerplate
- Fix TS7011 in use-api.ts: explicit return types for .catch() callbacks

Docs:
- Add docs/STACK_ANALYSIS_AND_UPDATES.md with upgrade notes and AI/Tailwind notes

README: mention Django 5.1+, fix typo (non-opinionated)
Co-authored-by: Cursor <cursoragent@cursor.com>
- Dockerfile: use python:3.12-slim-bookworm (3.12-rc-slim-buster deprecated)
- Dockerfile + workflows: poetry install --no-dev → --only main (Poetry 2)
- deploy-vm.yml: add missing space between docker build-arg options

Co-authored-by: Cursor <cursoragent@cursor.com>
@marcelovicentegc marcelovicentegc changed the base branch from master to main March 23, 2026 14:04
@marcelovicentegc marcelovicentegc merged commit 4ad3334 into main Mar 23, 2026
10 checks passed
@github-actions
Copy link
Copy Markdown

🎉 This PR is included in version 1.0.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant