Skip to main content

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

Project description

License Build Status Latest PyPI version Number of PyPI downloads Supports Wheel format

Tired of typing long Django commands like python manage.py runserver? 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.

Predefined shortcuts include:

  • r or run - runserver

  • any valid manage.py command

Config file

Command aliases can be specified in 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
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.

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.

Want to create a cutting edge web or mobile app or need help with setting up backend architecture? Just drop us a note at en@ig.ma and we will guide you from idea to a final product.

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-1.0.0.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

dj_cmd-1.0.0-py2.py3-none-any.whl (6.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file dj-cmd-1.0.0.tar.gz.

File metadata

  • Download URL: dj-cmd-1.0.0.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for dj-cmd-1.0.0.tar.gz
Algorithm Hash digest
SHA256 47588966ebf4345d792fdfd8512f8797be57e780454c02188e6f2583b50d03b5
MD5 2e062223259e7e41a47fddd5bb9ae555
BLAKE2b-256 1a1cc45256955a4b162b173e1eee56443fd77cb3b0d06baf77da85ebfa5fe172

See more details on using hashes here.

File details

Details for the file dj_cmd-1.0.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for dj_cmd-1.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 51eabf4e8aae5c811d3e99b0ff7e6c2b09300e8daffa63e45625eb9953e90a39
MD5 45cd7f99bbffcc3dad20304060c04edc
BLAKE2b-256 7c2078c31a861963764ccea665961fdaea848cbe546f99c59b52feb54c069566

See more details on using hashes here.

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