Tired of typing long Django commands like
python manage.py runserver? Just
pip install dj-cmd
from any project's directory.
- saves typing
- automatically locates Django's
manage.pyscript in the current or parent directories
- works great with virtualenv, even on Windows
List of command aliases is a matter of personal taste, so go ahead and adjust the config or fork the project and add yours to the aliases.py file.
Predefined shortcuts include:
- any valid
Command aliases can be specified in a config file.
.dj.ini config file is present in the user's home directory
or in the
manage.py base directory, it is used to populate the list
of command aliases.
Example of the
.djcmd config file:
[commands] r=runserver rp=runserver_plus sh=shell sp=shell_plus dbs=dbshell cs=collectstatic --noinput m=migrate mm=makemigrations sm=showmigrations cleanpyc=clean_pyc
Put it in your home or in the
manage.py base directory of your project.
dj-cmd is released under the BSD license.
- GitHub repository - https://github.com/nigma/dj-cmd
- PyPi Package site - http://pypi.python.org/pypi/dj-cmd
- Sample config file - https://github.com/nigma/dj-cmd/blob/master/.djcmd
This app, and many others, have been created at en.ig.ma web & mobile development.
Want to create a cutting edge web or mobile app or need help with setting up backend architecture? Just drop us a note at firstname.lastname@example.org and we will guide you from idea to a final product.