Start Django dev server faster
Project description
Django shortcuts
You spend too much time typing python3 manage.py
.
Usage
PyPi package installs django
and d
binaries to proxy
Django's manage.py
scripts.
All arguments with -
at the begining before command are threated as Python flags.
$ django <command or shortcut>
$ cd any/project/subdirectory
$ 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 |
sp | startproject |
Configuration file
The program looks for .django_shts3
file in home directory and loads extra commands from it.
They overwrite default commands. File format is:
alias @@@ command
m @@@ migrate
Example:
I have 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
Or same thing, but with deprication warnings:
$ d -Wd r
Installation
$ pip3 install django-shts3
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
django-shts3-4.2.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for django_shts3-4.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf8106962097f8c81418f4e855d4b7746f9fd4d0e2581388b5e955952a8f7dd0 |
|
MD5 | 118b5821940324d23898bb62e2ce8a80 |
|
BLAKE2b-256 | 74249e9078049757f5e928ed2c4fd30757027f471e07c6405c3513e094d99332 |