Tired of typing python manage.py runserver
? Just
pip install dj-cmd
and then
dj run
from any project's directory.
- saves typing
- automatically locates
manage.py
script 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.
Currently supported commands:
run
- runserver- any valid
manage.py
command
Command aliases can also be specified using a config file.
If a .djcmd
or .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]
cs=collectstatic --noinput
r=runserver
sh=shell
rp=runserver_plus
shp=shell_plus
m=migrate
sma=schemamigration --auto
Put it in your home or in the manage.py
base directory of your project.
dj-cmd
is released under the BSD license.
This is not the first project of this kind. Other may suits you better, this works well for me.
- GitHub repository - https://github.com/nigma/dj-cmd
- PyPi Package site - http://pypi.python.org/pypi/dj-cmd
- Distutils dev version link.