Have a django command
Project description
Django includes the django-admin command. I really want to spell it django. I also wanted to be able to configure a default settings module in a configuration file.
Usage
pip install django-cmd
django startproject
Once installed, you can use the django command the same as you would normally use the django-admin command.
Replace manage.py
Did you know that the manage.py script is just a thin wrapper around the django-admin command? All the wrapper does is set DJANGO_SETTINGS_MODULE so that it can load your settings and find any additional commands from your installed apps. With a tiny bit of configuration, you can use this django command in place of python manage.py!
In your pyproject.toml file, add a section like this to configure your default settings module:
[tool.django]
settings = "myproject.settings"
# pythonpath = "src" # Default: the pyproject.toml directory
Now you can also use the django command everywhere you would normally use python manage.py:
django runserver
django migrate
django createsuperuser
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_cmd-3.0.tar.gz.
File metadata
- Download URL: django_cmd-3.0.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
febaed27da7a6e698492910a1f5e59496bdc81672af30f7c63913f08a8d409c1
|
|
| MD5 |
d577a7252672c14ee9af3ca8f53dc54d
|
|
| BLAKE2b-256 |
619a48fddb91761cf033fa27e74fa31756bdeab65124a780203bfba29772c638
|
Provenance
The following attestation bundles were made for django_cmd-3.0.tar.gz:
Publisher:
publish.yml on ryanhiebert/django-cmd
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
django_cmd-3.0.tar.gz -
Subject digest:
febaed27da7a6e698492910a1f5e59496bdc81672af30f7c63913f08a8d409c1 - Sigstore transparency entry: 779859832
- Sigstore integration time:
-
Permalink:
ryanhiebert/django-cmd@53915aa9a4439086f85dff02d70c348e98c64824 -
Branch / Tag:
refs/tags/3.0 - Owner: https://github.com/ryanhiebert
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@53915aa9a4439086f85dff02d70c348e98c64824 -
Trigger Event:
release
-
Statement type:
File details
Details for the file django_cmd-3.0-py3-none-any.whl.
File metadata
- Download URL: django_cmd-3.0-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7d63ba4f7fc30f3fa592a15585ebf74857f8442f5c0e06fe1934ca35028b3edc
|
|
| MD5 |
6f2200e389d69b2e5d9c14f1f952f824
|
|
| BLAKE2b-256 |
312f2ac4bad36a006c88873ac72125992794e9affc405064324f60321f7e9d9f
|
Provenance
The following attestation bundles were made for django_cmd-3.0-py3-none-any.whl:
Publisher:
publish.yml on ryanhiebert/django-cmd
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
django_cmd-3.0-py3-none-any.whl -
Subject digest:
7d63ba4f7fc30f3fa592a15585ebf74857f8442f5c0e06fe1934ca35028b3edc - Sigstore transparency entry: 779859833
- Sigstore integration time:
-
Permalink:
ryanhiebert/django-cmd@53915aa9a4439086f85dff02d70c348e98c64824 -
Branch / Tag:
refs/tags/3.0 - Owner: https://github.com/ryanhiebert
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@53915aa9a4439086f85dff02d70c348e98c64824 -
Trigger Event:
release
-
Statement type: