Skip to main content

`dj cmd` is a Django shortcut command.

Project description

Build Status

Tired of typing python manage.py runserver? Just

pip install dj-cmd

and then

dj run

from any project’s directory.

Features

  • saves typing

  • automatically locates 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:

  • 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]
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.

License

dj-cmd is released under the BSD license.

Similar projects

This is not the first project of this kind. Other may suits you better, this works well for me.

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.

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

dj-cmd-0.4.zip (10.2 kB view hashes)

Uploaded Source

Built Distribution

dj_cmd-0.4-py2.7.egg (6.7 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page