Back to browse
DJX – Convention over Configuration for Django (Rails-Inspired CLI)

DJX – Convention over Configuration for Django (Rails-Inspired CLI)

by RedsonNgwira·Mar 13, 2026·5 points·2 comments

AI Analysis

MidShip It

Rails-style scaffolding for Django when cookiecutter-django already exists.

Strengths
  • Single command generates models, views, templates, and URLs wired together.
  • Automatic venv, git repo, and initial migrations on project creation.
  • Works with existing Django 4.2+ projects without breaking conventions.
Weaknesses
  • Django already has startapp and startproject commands built-in.
  • Cookiecutter Django and django-scaffold cover similar ground already.
Target Audience

Django developers tired of boilerplate

Similar To

cookiecutter-django · django-scaffold · Rails generators

Post Description

Hi HN,

I'm a self-taught developer from Malawi, and I built DJX because I was tired of writing the same Django boilerplate over and over.

Django is powerful, but starting a new feature means manually creating models, views, templates, URLs, and wiring everything together. Rails solved this 20 years ago with scaffolding. Django deserves the same.

DJX brings convention over configuration to Django:

pip install djx-cli djx new myblog && cd myblog djx scaffold Post title:string content:text published:boolean python manage.py migrate && python manage.py runserver # → http://127.0.0.1:8000/posts/ — full CRUD. Done.

That's it. You get list, create, edit, and delete views with templates, all wired up automatically.

Other commands: - `djx routes` — see all URL routes (Django doesn't have this built-in) - `djx destroy scaffold Post` — clean removal of generated code - `djx add django-crispy-forms` — install and auto-add to INSTALLED_APPS - `djx model`, `djx controller` — generate pieces individually

It follows Rails conventions: pluralized app names, RESTful URLs, automatic timestamps, and sensible defaults.

I built this because I wanted Django development to feel as fast as Rails. It's early stage, but it's already saving me hours on every project.

PyPI: https://pypi.org/project/djx-cli/ GitHub: https://github.com/RedsonNgwira/djx-cli

Would love your feedback and contributions. What other Rails-like features would make Django development faster?

Similar Projects