Skip to main content

A modern CLI tool that replaces 'python manage.py' and 'django-admin' with simpler 'django' or 'dj' commands

Project description

Easy Django CLI

A modern CLI tool that simplifies Django development by replacing python manage.py and django-admin commands with simpler django or dj commands.

CI PyPI version Python Versions Django Versions License: MIT

Features

  • Simpler commands: Use django or dj instead of python manage.py
  • Smart project detection: Automatically finds your manage.py file
  • Drop-in replacement: Works with all Django management commands
  • Zero configuration: Just install and use

Installation

Using uv (recommended)

uv pip install easy-django-cli

Using pip

pip install easy-django-cli

Usage

After installation, you can use django or dj commands instead of python manage.py:

Before (traditional Django)

python manage.py runserver
python manage.py makemigrations
python manage.py migrate
python manage.py createsuperuser
python manage.py shell

After (with easy-django-cli)

django runserver
django makemigrations
django migrate
django createsuperuser
django shell

Or use the even shorter dj alias:

dj runserver
dj makemigrations
dj migrate
dj createsuperuser
dj shell

How It Works

easy-django-cli automatically:

  1. Searches for manage.py in the current directory
  2. If found, executes commands through your project's manage.py
  3. If not found, falls back to django-admin for project creation and other admin commands

This means you can run Django commands from any subdirectory of your project!

Examples

Start the development server

django runserver
# or
dj runserver 0.0.0.0:8000

Create and apply migrations

django makemigrations
django migrate

Create a new Django project

django startproject myproject

Create a new app

django startapp myapp

Run tests

django test

Open Django shell

django shell

Collect static files

django collectstatic --noinput

Requirements

  • Python 3.11 or higher
  • Django 4.2 or higher

Compatibility

This package is tested with:

  • Python: 3.11, 3.12, 3.13, 3.14
  • Django: 4.2, 5.0, 5.1, 5.2, 6.0

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Author

Tim Kamanin - A Freelance Django and Wagtail Developer

Links

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

easy_django_cli-0.2.0.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

easy_django_cli-0.2.0-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file easy_django_cli-0.2.0.tar.gz.

File metadata

  • Download URL: easy_django_cli-0.2.0.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for easy_django_cli-0.2.0.tar.gz
Algorithm Hash digest
SHA256 439ae186de535056e804defb81a0ba16285dc8a25a80cce9503fe24a8954fa6d
MD5 292673e695a6c973407d44bf85ab4e1f
BLAKE2b-256 4740c002b4f5dfeb57dd8a3cae6ea0b4e8353f6b51372165c224ed48fcbc23c0

See more details on using hashes here.

Provenance

The following attestation bundles were made for easy_django_cli-0.2.0.tar.gz:

Publisher: ci.yml on timonweb/easy-django-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file easy_django_cli-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for easy_django_cli-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9b6a4941024e29d4eaebf311e07214431fc2dbd5b0be298d021270786ff64b7d
MD5 11d59d683c1faf048491d922a3268d72
BLAKE2b-256 9e8bebfa0174418dd64f7819cfcbab4288dd534e67bd5ebe102b8a337859e387

See more details on using hashes here.

Provenance

The following attestation bundles were made for easy_django_cli-0.2.0-py3-none-any.whl:

Publisher: ci.yml on timonweb/easy-django-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page