Start Django dev server faster
Project description
Django shortcuts
================
You spend too much time typing ``python3 manage.py``.
.. image:: https://badge.fury.io/py/django-shts3.svg
:target: https://badge.fury.io/py/django-shts3
Usage
-----
Django shortcuts installs ``django``, ``dj``, ``d`` binaries that proxies
Django's ``manage.py`` scripts.
::
$ django <command or shortcut>
$ cd any/project/subdirectory
$ d <command or shortcut>
Default shortcuts
---------
+-------------+---------+-----------------+
| | Aliases | Command |
+=============+=========+=================+
| Most common | c | collectstatic |
+ +---------+-----------------+
| | r | runserver |
+ +---------+-----------------+
| | s / sh | shell |
+ +---------+-----------------+
| | t | test |
+-------------+---------+-----------------+
| Migrations | m | migrate |
+ +---------+-----------------+
| | mkm | makemigrations |
+-------------+---------+-----------------+
| Other | csu | createsuperuser |
+ +---------+-----------------+
| | cpw | changepassword |
+ +---------+-----------------+
| | sa | startapp |
+ +---------+-----------------+
| | sp | startproject |
+-------------+---------+-----------------+
Configuration file
---------
If in home dirctory exists file .django_shts3, commands are loaded from it. They overwrite default commands. File format is
::
alias @@@ command
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
Installation
------------
::
$ pip3 install django-shts3
================
You spend too much time typing ``python3 manage.py``.
.. image:: https://badge.fury.io/py/django-shts3.svg
:target: https://badge.fury.io/py/django-shts3
Usage
-----
Django shortcuts installs ``django``, ``dj``, ``d`` binaries that proxies
Django's ``manage.py`` scripts.
::
$ django <command or shortcut>
$ cd any/project/subdirectory
$ d <command or shortcut>
Default shortcuts
---------
+-------------+---------+-----------------+
| | Aliases | Command |
+=============+=========+=================+
| Most common | c | collectstatic |
+ +---------+-----------------+
| | r | runserver |
+ +---------+-----------------+
| | s / sh | shell |
+ +---------+-----------------+
| | t | test |
+-------------+---------+-----------------+
| Migrations | m | migrate |
+ +---------+-----------------+
| | mkm | makemigrations |
+-------------+---------+-----------------+
| Other | csu | createsuperuser |
+ +---------+-----------------+
| | cpw | changepassword |
+ +---------+-----------------+
| | sa | startapp |
+ +---------+-----------------+
| | sp | startproject |
+-------------+---------+-----------------+
Configuration file
---------
If in home dirctory exists file .django_shts3, commands are loaded from it. They overwrite default commands. File format is
::
alias @@@ command
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
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for django_shts3-4.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e9423cfd503fef8197f5649ddb95fd6490fe812ab21e9c53e5e3bdb3e705e3d |
|
MD5 | b06ae9ffdd07e7f4d634e11b11b2b561 |
|
BLAKE2b-256 | e76460b3752eeec4ac1e208d2cdcba9773a8c6d5e413b30f56dfb7b0c0aad219 |