Metadata-Version: 2.4
Name: django-cli-no-admin
Version: 2026.8.3
Summary: Use the Django CLI using "django" without typing "django-admin"
Author-email: Jeff Triplett <jeff.triplett@gmail.com>
License-Expression: BSD-3-Clause
Project-URL: Changelog, https://github.com/jefftriplett/django-cli-no-admin/releases
Project-URL: Documentation, https://github.com/jefftriplett/django-cli-no-admin
Project-URL: Fiscal support, https://github.com/sponsors/jefftriplett/
Project-URL: Homepage, https://jefftriplett.com
Project-URL: Source, https://github.com/jefftriplett/django-cli-no-admin
Classifier: Development Status :: 5 - Production/Stable
Classifier: Framework :: Django :: 4.2
Classifier: Framework :: Django :: 5.0
Classifier: Framework :: Django :: 5.1
Classifier: Framework :: Django :: 5.2
Classifier: Framework :: Django :: 6.0
Classifier: Framework :: Django :: 6.1
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: 3.15
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE.txt
Requires-Dist: django
Dynamic: license-file

# django-cli-no-admin

> Use the Django CLI using "django" without typing "django-admin".

django-cli-no-admin is a config-only project that creates a `django` command and nothing more. With this package, you can use the `django` command instead of `django-admin` to execute management commands in your Django project.

> [!NOTE]
> This package will eventually become unnecessary once [DEP 16](https://github.com/django/deps/blob/main/accepted/0016-name-main-command-django.rst) is fully implemented in Django core. DEP 16 proposes renaming the main Django command from `django-admin` to `django`. Track the implementation progress in [django/deps#100](https://github.com/django/deps/pull/100).

See the blog post: https://micro.webology.dev/2024/12/14/new-project-to.html 

## Installation

You can install django-cli-no-admin using pip:

```shell
pip install django-cli-no-admin
```

Or, if you prefer uv: 

```shell
uv pip install django-cli-no-admin
```

## Usage

Once installed, you can use `django` from the command line in place of `django-admin`:

```shell
django startproject myproject
```

Or any other Django admin command:

```shell
django startapp myapp
```

### Running Project-Specific Commands

By default, the `django` command works with Django's built-in admin commands (like `startproject`, `startapp`, etc.). To run project-specific management commands from your `manage.py` (like `runserver`, `migrate`, `makemigrations`, etc.), you'll need to set the `DJANGO_SETTINGS_MODULE` environment variable:

```shell
export DJANGO_SETTINGS_MODULE=myproject.settings
django runserver
```

Or set it inline:

```shell
DJANGO_SETTINGS_MODULE=myproject.settings django migrate
```

This tells Django where to find your project's settings, allowing you to access all the commands that would normally be available through `manage.py`.

## No Additional Setup Required

There are no additional dependencies or configurations needed. Simply install the package, and you're ready to go. If you need to run project-specific commands, just remember to set `DJANGO_SETTINGS_MODULE` as shown above.

## License

django-cli-no-admin is licensed under the BSD License. See the LICENSE.txt file for details.
