skip to navigation
skip to content

Not Logged In

dj-cmd 0.5

`dj cmd` is a shortcut for Django's `python manage.py` commands.

Build Status Latest Version Downloads License

Tired of typing python manage.py runserver to invoke Django commands? Just

pip install dj-cmd

and then

dj r

from any project's directory.

Features

  • saves typing
  • automatically locates Django's manage.py script in the current or parent directories
  • works great with virtualenv, even on Windows

Commands

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:

  • r or run - runserver
  • any valid manage.py command

Config file

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]
r=runserver
rp=runserver_plus

sh=shell
sp=shell_plus

cs=collectstatic --noinput

m=migrate
sma=schemamigration --auto
smi=schemamigration --init

mm=makemessages -a
cm=compilemessages

cleanpyc=clean_pyc

Put it in your home or in the manage.py base directory of your project.

License

dj-cmd is released under the BSD license.

Other Resources

Commercial Support

This app, and many others, have been created at en.ig.ma web & mobile development.

Do you need help building your web app or api backend? Just drop us a note at en@ig.ma and we will guide you from project idea to live website.

 
File Type Py Version Uploaded on Size
dj-cmd-0.5.zip (md5) Source 2014-02-06 10KB
dj_cmd-0.5-py2.7.egg (md5) Python Egg 2.7 2014-02-06 6KB
  • Downloads (All Versions):
  • 35 downloads in the last day
  • 341 downloads in the last week
  • 1038 downloads in the last month