Scaffold modern full-stack apps with Next.js + Django — instantly.
Nextjango is a blazing-fast CLI tool that jumpstarts your full-stack development by scaffolding a modern frontend with Next.js and a powerful backend using Django. Built for developers who want flexibility, security, and complete control — without wasting time on boilerplate.
- ✅ Generate a full-stack project with
Next.js
+Django
in seconds - 🧱 Built-in support for TypeScript, Tailwind CSS, and SQLite (default; support for other databases is planned)
- 🔒 Secure backend with Django and admin path obfuscation
- 🔗 API-ready and configurable for REST or GraphQL (coming soon)
- 🧪 Developer-first architecture with batteries included, but replaceable
- 🧰 Easily extendable with custom page and model generators
Python 3 is optional but needed for the Django backend and for running the Python-dependent test suites. When Python isn't installed, those tests will automatically be skipped.
Install Nextjango globally (optional):
npm install -g nextjango
🛠️ Usage
Initialize Nextjango in a project directory:
npx nextjango init
🧙 The CLI will guide you to select a package manager with the arrow keys if none is found.
You can also specify one manually:
npx nextjango init --package-manager pnpm
Start both backend and frontend dev servers together:
npm run dev
Create a full-stack page (auto-wired front to back):
npx nextjango create-page about
🏷️ Alias Setup
You can use the installed alias "nj" instead of nextjango:
{
"scripts": {
"nj": "nextjango"
}
}
Now you can run:
pnpm nj create-page about
Or with npm (your choice):
npm run nj -- create-page about
Project Structure:
my-app/
├── frontend/ # Next.js + Tailwind + App Router
│ └── ...
├── backend/ # Django + REST-ready setup
│ └── ...
└── shared/ # Common types, constants, or utils (optional)