Django shortcuts
You spend too much time typing python3 manage.py
The tool is used by Uptrader team for more then two years
It's a fork of django-shortcuts by Johannes Gorset
Features
- shorter aliases for built-in commands
- config files for user-defined shortcuts
- works from any project subdirectory
$ python3 manage.py shell
$ cd any/project/subdirectory
$ d s # the same
Installation
$ pip3 install django-shts3
Usage
PyPi package installs django and d binaries.
Arguments with - at the begining before command are eaten by the Python interpretator.
$ django <command or shortcut>
$ d <command or shortcut>
Default shortcuts
| Alias | Command |
|---|---|
| c | collectstatic |
| r | runserver |
| s / sh | shell |
| t | test |
| m | migrate |
| mkm | makemigrations |
| csu | createsuperuser |
| cpw | changepassword |
| sa | startapp |
Customization
The program loads extra aliases from .django_shts3 file in project directory and in home directory.
Example:
alias @@@ command
m @@@ migrate
Example:
I have a docker container with Django and I should bind to 0.0.0.0:8000 on runserver command, so I have:
$ cat .django_shts3
r @@@ runserver 0.0.0.0:8000
That allows me to start Django server like:
$ d r
Contributing
Pull requests are welcome!
Please report all problems to GitLab issues
Release files for django-shts3 5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-shts3-5.0.tar.gz | 3.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_shts3-5.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.2 kB
Release files / django-shts3-5.0.tar.gz
| Download URL | django-shts3-5.0.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
889c20d47f5b2aa50f0e248acf90c8f602dd6c67236da6d85dd85d13af2209ab
|
|
BLAKE2b-256 checksum How to use checksums |
963d9f62f650d7f64030ec6dd9f0f7c3df407f2ad0fa0ec052ea01a3d5e9eb4c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.8.1
|
Release files / django_shts3-5.0-py3-none-any.whl
| Download URL | django_shts3-5.0-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1758ce9095c41d0d1db34ab2ae3841ac26f30dbe8fc727221eb8fa094c9d36b6
|
|
BLAKE2b-256 checksum How to use checksums |
c53379dd7c70f6bfbbbcddeeb63d56d04af25af4f5e192fdbab29f34b05f77f9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.8.1
|